exactphrase
Exact phrase refers to a type of search query in information retrieval where the document must contain a specific sequence of words in the given order, with no intervening terms. It is used when the exact wording matters, such as quotes, titles, or precise technical phrases. This differs from general keyword searches, which may return documents containing any of the terms in any order, and from proximity queries, which allow a bounded gap between words.
Implementation typically relies on a positional inverted index, where each term is indexed with the positions
Variants include allowing a small amount of slop (gaps) in the sequence, which enables near-exact or near-match
Applications extend across search engines, digital libraries, and data systems where precise wording is important, such