Search and Retrieval Fundamentals
-
A Document and a Query in Text Search
A document supplies indexed text or fields. A query expresses a reader's request under the search service's matching rules.
-
Tokenizing a Phrase for Search
A tokenizer divides text into units used by an index or query. Punctuation, case, and language affect the chosen units.
-
Normalizing Search Terms
A search index can use canonical term representations while preserving the original text for readers.
-
An Inverted Index by Hand
An inverted index maps each term to documents where it appears, enabling lookup by term rather than checking every document directly.
-
AND Queries by Intersecting Postings
In a simple Boolean model, AND keeps documents appearing in every requested term's postings.
-
OR Queries by Combining Postings
An OR query can match documents containing either term. A document matching both still represents one result under the usual membership model.
-
Phrase Matching with Term Positions
A phrase query normally needs terms in the required relative positions, not merely each term somewhere in the document.
-
Exact Titles, Prefixes, and Broader Matches
A search may prefer an exact title match, then a title beginning with the query, then broader textual matches under a declared ranking policy.
-
Weighting a Title Match and a Body Match
Search scoring can give fields different influence when they provide different evidence of relevance.
-
Term Frequency and Document Frequency
Term frequency counts occurrences in one document. Document frequency counts documents where the term occurs at least once.
-
Why Rare Terms Can Carry More Retrieval Evidence
An inverse document frequency factor can give less influence to terms occurring in many documents and more to selective ones.
-
Accounting for Document Length in Retrieval
Long documents can offer more opportunities for a term to appear. A scoring scheme can account for length while preserving meaningful term evidence.
-
A Trie for Prefix Completions
A trie can store query completions by common prefixes, allowing navigation to one prefix and enumeration of its matching descendants.
-
Showing a Snippet Around a Search Hit
A snippet can give nearby readable context for a match while keeping the full document available through its detail link.
-
A Small Edit Distance Example
Edit distance measures the fewest allowed editing operations to transform one text into another under specified costs.
-
Expanding a Query with Related Terms
A system can add known related terms to retrieve documents written with different vocabulary. The expansion rule affects both coverage and ranking.
-
Tie Rules in Ranked Retrieval
A ranking score may place several results at the same value. A secondary order keeps the ranking stable for users and evaluation.
-
Precision at a Search Cutoff
Precision at a cutoff measures the fraction of returned positions judged relevant among the first specified number under its convention.
-
Recall of Relevant Search Documents
Recall measures which fraction of known relevant documents a retrieval result includes.
-
Reciprocal Rank of the First Relevant Result
Reciprocal rank takes the inverse rank of the first relevant result, giving more weight to finding a useful result near the top.
-
Evaluating Search on Several Kinds of Queries
A search evaluation should include queries reflecting distinct reader goals, with expected results or relevance judgments for each.
-
An Empty Query and a Query with No Matches
A search interface can display browse options for an empty query and a useful no-results state for a supplied query with no matching documents.
-
Updating a Search Index After a Document Edit
A search index may lag committed document changes. A version-aware update can preserve the intended relationship between indexed fields and the visible page.
-
Planning the Visibility Boundary of a Public Search Index
An index can expose snippets, titles, and existence information. Build it from records eligible for the search audience.
-
Language Choices in Search Results
Search can select or prefer an edition according to the reader's language and the service's available translations.
-
Comparing Search Vectors by Similarity
A search system can represent documents and queries as vectors and rank by a specified similarity. The choice of vector and score determines which relationships it sees.
-
Using Term and Vector Evidence Together
Search may combine exact terms, phrase evidence, and vector similarity. The combination needs a scale and a clear objective.
-
Reading Search Result Counts
A search result count can describe all known matches, matches across available sources, or only those returned in the current response.
-
Testing Search with Ordinary Spelling Variants
A retrieval test can distinguish casing, punctuation, spacing variations, and true word changes under the intended normalization.
-
Editorial Links as an Adjacent Discovery Path
A relevant link in explanatory text can help readers move from a term or example to the concept it depends on.