Answer the question
In order to leave comments, you need to log in
How to search for match pairs of occurrences in yii2-sphinx?
There is a table that looks something like this:
id, login_id, address
$locationquery = $model1->location;
$location = $search->select('id')->from('location')->match($locationquery)->all();
Answer the question
In order to leave comments, you need to log in
You need to format the address in the index as MVA
And then it will be possible to search by the exact match of the attribute, and not through the full-text match search (for example: WHERE address="Moscow" AND address="New york")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question