C
C
Cyril2017-08-25 23:45:05
MySQL
Cyril, 2017-08-25 23:45:05

How to optimize a query in Sphinx?

With the help of Sphinx, I am looking for 5 fields in the indexed table at once using MATCH . All five fields are plain text. Is it possible to somehow adjust the priority on which fields to search? For example, so that the search results for the field field_1 are taken into account more than for the fields field_2, field_3, etc. ?
For example, there are only 5 matches for the field_1 field, and 100 matches for the other fields. How to properly organize the query so that 5 matches in the field field_1 are taken into account in the first place ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-08-26
@opium

yes, you can specify priorities in the config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question