I
I
Ilya Malinovsky2019-05-22 13:31:48
Sphinx
Ilya Malinovsky, 2019-05-22 13:31:48

How to correct the work of sphinx?

There is a table that is being searched using sphinx
5ce52337cf2b4760035637.jpeg
In the first line we have the phrase: Big deal, Russian
In the second: Russian, Big deal
I want the search to search by words and phrases separated by a comma, that is, the word Russian and the phrase Big deal should not interact nothing among themselves.
When I enter the query: Russian Big deal , I get that the second category gets more weight, and when I query Big deal Russian , the first category has more weight. And as a result, I should get the same weights.
I use the SPH_MATCH_ANY mode for searching.
How can I configure the search so that it works as I need?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2019-05-24
@opium

sphinx does not add commas to the index, that is, they are not in the index, poke the search with your hands in the console and see what weights your query receives in the results found.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question