Reputation: 459
How to set the boundaries of words using Sphinx
?
For example, i want to find a phrase: "some."
But Sphinx
finds "something"!
I've tried to set SPH_MATCH_PHRASE)
:
sphinx_set_match_mode(sph, SPH_MATCH_PHRASE);
Upvotes: 0
Views: 437
Reputation: 1719
I would suggest to use extended syntax: SPH_MATCH_EXTENDED2
And use phrase search operator like:
$cl->Query('"some"');
Check out the manual: http://sphinxsearch.com/docs/current.html#extended-syntax
Upvotes: 1
Reputation: 1027
Check out the manual.
http://sphinxsearch.com/docs/current.html#conf-phrase-boundary
Upvotes: 0