D
D
Donald_Duck2018-04-01 16:40:57
Sphinx
Donald_Duck, 2018-04-01 16:40:57

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();

Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2018-04-01
@opium

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 question

Ask a Question

731 491 924 answers to any question