Answer the question
In order to leave comments, you need to log in
How to use special in yii2 sphinx search operators?
Good afternoon.
Can you please tell me how to use search operators in yii2 + sphinx?
Sample queries:
1. "Hello world"
2. Hello !world
3. "Hello my" !friend
As I understand it, you need to use MatchExpression? Those. convert the search string to the format:
$match = (new MatchExpression())
->andMatch([
'not',
'name',
'apple',
]);
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