Answer the question
In order to leave comments, you need to log in
How to force Sphinx to return only those materials that have all the words from the query?
Hello, I'm trying to make a search that only looks for all the words in a query.
For example, there is a text
The supranational body of the Customs Union may begin its work in 2014. This was told by the head of the Federal Antimonopoly Service (FAS) of Russia Igor Artemyev. "They have not yet entered into their truth, they will enter after the approval of the powers, the methodology for developing competition - it will take another year. I think they will be able to start around 2014," he said.
$sql = 'SELECT * FROM '.$db.' WHERE MATCH(\''.$title.'\') LIMIT '.$lim0.', '.$lim1.' OPTION ranker=matchany,max_matches=100000;';
$sql = 'SELECT * FROM '.$db.' WHERE MATCH(\''.$title.'\') LIMIT '.$lim0.', '.$lim1.' OPTION ranker=proximity,max_matches=100000;';
$sql = 'SELECT * FROM '.$db.' WHERE MATCH(\'"'.$title.'"\') LIMIT '.$lim0.', '.$lim1.' OPTION ranker=proximity,max_matches=100000;';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question