Answer the question
In order to leave comments, you need to log in
Is it possible to set the weight for the request if we are looking for several?
Hello.
I'm trying to do a search for synonyms through the sphinx. I made a database of synonyms and I send several requests for synonyms to the sphinx at once. for example, the word "sofa" has synonyms for "ottoman", "couch". If the user types in the query "red sofa" then we get: (red sofa) | (red ottoman) | (red couch).
Is it possible to raise the user query results i.e. "red sofa" relative to others?
Answer the question
In order to leave comments, you need to log in
There is a special booster. More details in the article about the extended syntax sphinxsearch.com/docs/current/extended-syntax.html
In short, after the word we write ^ and the number by which we increase, for example, ^100
WHERE MATCH('@(field0,field1,field2,field3) (кушетка красный^100) | ((диван красный) | (тахта красный))')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question