tiny.sql.SearchReader
Defined in tiny.sql.
API (17)
Actions
Public operations.
Types and contracts
Public types and contracts.
capabilitiesgetTextindexedSourcepostingStatspreparequeryqueryRankedqueryScoreBandsourceMatchessourceSchemaMatches
Fields and members
Public fields and members.
Source
Source: lib/sql/src/search/engine.zig:1562
zig
pub const Reader = struct { documents: table_mod.Reader, terms: index_mod.Reader, index_prefixes: bool, index_phrase_pairs: bool, omit_phrase_pair_singletons: bool, field_names: []const []const u8, pub fn open(snapshot: file.Snapshot, options: Options) Error!Reader { const roots = [_]space_mod.RootSpec{ .{ .root_page = options.documents_root }, .{ .root_page = options.terms_root }, }; const read_space = try space_mod.Reader.open(snapshot, .{ .meta_page = options.meta_page, .roots = &roots, .reserved_page_max = options.reserved_page_max, }); return .{ .documents = try read_space.rowidTable(options.documents_root), .terms = try read_space.index(options.terms_root, &.{.{ .collation = .binary }}), .index_prefixes = options.index_prefixes, .index_phrase_pairs = options.index_phrase_pairs, .omit_phrase_pair_singletons = options.omit_phrase_pair_singletons, .field_names = options.field_names, }; } pub const getText = Search.getText; pub const capabilities = Search.capabilities; pub const indexedSource = Search.indexedSource; pub const sourceMatches = Search.sourceMatches; pub const sourceSchemaMatches = Search.sourceSchemaMatches; pub const postingStats = Search.postingStats; pub const query = Search.query; pub const queryScoreBand = Search.queryScoreBand; pub const queryRanked = Search.queryRanked; pub const prepare = Search.prepare; const getDocumentText = Search.getDocumentText; const requestedCapabilities = Search.requestedCapabilities; const indexCapabilities = Search.indexCapabilities; const canUsePhrasePairPostings = Search.canUsePhrasePairPostings; const phrasePairPostingsArePartial = Search.phrasePairPostingsArePartial; const queryParsed = Search.queryParsed; const queryParsedScoreBand = Search.queryParsedScoreBand; const queryParsedRanked = Search.queryParsedRanked; const queryParsedCandidateRows = Search.queryParsedCandidateRows; const rankSingleAtomCandidateRows = Search.rankSingleAtomCandidateRows; const rankPrefixAtom = Search.rankPrefixAtom; const rankPhrasePairAtom = Search.rankPhrasePairAtom; const queryParsedRankedExactOr = Search.queryParsedRankedExactOr; const rankCandidateRows = Search.rankCandidateRows; const clauseIndexHits = Search.clauseIndexHits; const clauseBoundedIndexHits = Search.clauseBoundedIndexHits; const clauseScoreBandIndexHits = Search.clauseScoreBandIndexHits; const queryBoundedExactOrHits = Search.queryBoundedExactOrHits; const queryScoreBandExactOrHits = Search.queryScoreBandExactOrHits; const queryExactOrHitsAtLeastScore = Search.queryExactOrHitsAtLeastScore; const atomIndexHits = Search.atomIndexHits; const atomBoundedIndexHits = Search.atomBoundedIndexHits; const atomScoreBandIndexHits = Search.atomScoreBandIndexHits; const clauseCandidates = Search.clauseCandidates; const scoredClauseHits = Search.scoredClauseHits; const atomDocuments = Search.atomDocuments; const verifiedRowsFromCandidates = Search.verifiedRowsFromCandidates; const phrasePairVerifiedHits = Search.phrasePairVerifiedHits; const termDocuments = Search.termDocuments; const termHits = Search.termHits; const termHitsForKind = Search.termHitsForKind; const postingHits = Search.postingHits; const phrasePairHits = Search.phrasePairHits; const termHitsBounded = Search.termHitsBounded; const termHitsScoreBand = Search.termHitsScoreBand; const termHitsAtLeastScore = Search.termHitsAtLeastScore; const prefixHits = Search.prefixHits; const prefixDocuments = Search.prefixDocuments; const allDocuments = Search.allDocuments; const corpusStats = Search.corpusStats; const corpusStatsOrEmpty = Search.corpusStatsOrEmpty; const documentLength = Search.documentLength; const documentLengths = Search.documentLengths; const collectRankingTerms = Search.collectRankingTerms; const atomDocumentFrequency = Search.atomDocumentFrequency; const collectTermKeys = Search.collectTermKeys; const collectPostings = Search.collectPostings;};Source: lib/sql/src/root.zig:252
zig
pub const SearchReader = search.Reader;Also reachable as
Audit
| Definitions | 12 |
|---|---|
| Public names | 24 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |