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.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a handbook search
  2. Keep search intent visible
  3. Match a short user expression to larger stored objects
  4. Check retrieval and ranking as two decisions

Trace a handbook search

An article on UTF-8 may have a title, summary, and explanatory body. A query for encoding can match several fields. See named record fields for how those fields can be represented separately.

Keep search intent visible

An exact title query and a broad topic query may want different rankings. Use query parameters to give both a consistent request interface.[1]

Match a short user expression to larger stored objects

A document can have title “Bridge Inspection” plus a body discussing the inspection date. A query for “bridge date” may match evidence distributed across both fields. The query guides retrieval without copying an entire document into the request. See field weights.

Document A: title Bridge Inspection, body includes date
Document B: title District Date Guide, no bridge reference
Query: bridge date
Intended result depends on term and ranking rules

Check retrieval and ranking as two decisions

An AND rule may retain only A, whereas an OR rule can retain both and rank them differently. Use expected examples to explain what evidence lets records enter the result and what orders them.

References

  1. Christopher D. Manning, Prabhakar Raghavan and Hinrich Schütze, Introduction to Information Retrieval ↩