A
A
Alexander Arbuzov2020-02-20 13:17:17
Sphinx
Alexander Arbuzov, 2020-02-20 13:17:17

What's not to love about sphinx?

I'm trying to do a search through "OR" in MATCH. Match gets possible misspellings of the word.
We are looking for 'test search' after running through the possible options. The request looks like this. way

select id, weight() from default where MATCH('test search | еуые ыуфкср | тест сеарч | tеst sеаrсh');


I get an error
index default: syntax error, unexpected '|' near ' еуые ыуфкср | тест сеарч | tеst sеаrсh'


What does he not like? Moreover, if you remove "euye yufksr", then it works, but returns an empty result, although "test search" is definitely in the indexed data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2020-02-20
@BorisKorobkov

Check encoding. Must be UTF-8 both in the text and when connecting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question