Phrase matching looks for words that appear together in order, like “air max 270.” In stores, it boosts precision for model names and common two- or three-word units.
Phrase matching requires adjacent, ordered tokens to appear together (or within a small window). It’s implemented with inverted indexes that store positions, phrase queries with slop, and/or bigram/phrase fields.
"air max 270"), proximity with slop (allow 1–2 gaps), and bigram/trigram fields."air max 270" in title outranks documents where tokens are scattered."gore tex jacket" matches GORE-TEX jacket via normalized hyphenation.Phrase matching encodes common word units and model names, improving precision and CTR. Use positions, small-slop phrase queries, and bigram fields—with careful normalization and sensible boosts.
Phrase vs exact match?
Phrase enforces order & adjacency; exact match may simply match tokens/fields exactly.
What is slop?
A tolerance for small gaps or reorders in phrase queries.
Do I still need bigrams if I store positions?
Often yes—bigrams are fast and help ranking even when phrase queries exist.
See these concepts in action: semantic, typo-tolerant search for Shopify stores — implemented by Rapid Search