Opsa
Opsa

Reputation: 459

Sphinx - word boundaries

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

Answers (2)

Iaroslav Vorozhko
Iaroslav Vorozhko

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

Pavel S.
Pavel S.

Reputation: 1027

Check out the manual.

http://sphinxsearch.com/docs/current.html#conf-phrase-boundary

Upvotes: 0

Related Questions