Proximity searching finds words that appear near each other, not just anywhere. In stores, it’s great for model names and phrases that can have small gaps or reorders.
Proximity searching returns results where query terms occur within a certain distance (in order or unordered), using token positions and slop/distance parameters. It’s a flexible cousin of phrase matching that tolerates small gaps, synonyms, or minor reordering.
"air max 270"
) → distance 0.air NEAR/3 max
) → allow ≤3 tokens between.gore-tex
vs gore tex
) and accent folding.“gore tex running jacket”
→ matches GORE-TEX … jacket within 2–3 tokens.“air 270 max”
(misordered) → unordered proximity window still retrieves the right items.Proximity searching keeps meaningful word groups together without being brittle. Use small windows, pair with bigrams, protect exact fields, and tune per category/locale for precision without losing recall.
Proximity vs phrase matching?
Phrase requires strict order and adjacency (or tiny slop). Proximity allows a window and optional reordering.
Do I need positions if I have bigrams?
Yes—positions enable flexible windows; bigrams alone can miss valid variations.
What distances are safe?
Titles: 1–3; attributes: 1–4; descriptions: 3–6. Tune with evaluation.