T
T
Tatiana Komarova2017-05-23 14:19:18
Sphinx
Tatiana Komarova, 2017-05-23 14:19:18

How to set up fix for wrong layout when searching Sphinx?

Are there ready-made solutions or settings for the Sphinx search config, so that when I search, for example, "cdflm,f", I get results containing the word "wedding"?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2017-05-23
@tatia_kom

This can be fixed BEFORE "login" to sphinx.
1. When selecting from the database: select count .... limit 1 for the passed request, if there is no result - change the layout, otherwise - do not change.
2. After - we perform a normal full search with results.
The main thing: the combinations in the wrong layout should be COMPLETELY absent in the database!

P
Puma Thailand, 2017-05-23
@opium

no
layout should be changed in the application, not in the sphinx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question