Y
Y
Yuri2017-11-12 19:01:03
Sphinx
Yuri, 2017-11-12 19:01:03

How to ignore lines with exclusion words when searching with sphinx?

Good afternoon!
The point is in the title of the question. Namely words and stems, not field != 'word'
And is it possible to use this with thinking_sphinx in RoR ?
While I did it stupidly - I take the id of the records with the necessary words, I exclude from them the id of the records with exception words. It turns out two requests, clumsily and slowly, and even problems arose when there were too many id received.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-11-12
@Winter_Silence

it would be better to push off from a pure sphinx , with rankers properly configured
MATCH ('milk! sour')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question