Skip to main content

Exercises: phrase

Phrases match terms in proximity to one another, either exact order with no words in the middle, or with the words not necessarily in order or with additional words interspersed.

HINT: See the phrase operator docs for these exercises.

πŸ”— Playground link: not close enough phrase match
Solution
"slop": 1

If the query were adjusted this would match

But you can't adjust what the users query for, so the configuration or search operators need to be adjusted.

πŸ”— solution using phrase slop