Answer the question
In order to leave comments, you need to log in
Why doesn't SPH_MATCH_ANY work?
Hello! To work with sphinx in laravel I use this plugin https://github.com/sngrl/sphinxsearch but it's not clear how the search modes work. Let's say looking for tires finds several results, looking for tires for cars finds 0 results. Although matching mode is set to SPH_MATCH_ANY i.e. should find results if at least 1 word occurs, but for some reason this does not happen. Is this a bug in this plugin or am I misunderstanding how matching mode works?
I use the following code for the request
$result = $sphinx->search('my query', 'index_name')
->setMatchMode(\Sphinx\SphinxClient::SPH_MATCH_ANY)
->get();
Answer the question
In order to leave comments, you need to log in
Well, firstly, you need to look at the qveri log
, and secondly, look directly through the mysql protocol
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question