Y
Y
Yuriy2017-02-17 14:34:48
PHP
Yuriy, 2017-02-17 14:34:48

How to force sphinx to look for queries with a minus?

How to force sphinx to look for queries with a minus?
there are queries like connector 2-level 0.9mm 60x27
if you enter in the search Connector 2-level 0.9mm 60x27 or just 2-level, then the result is 0
if you enter everything the same, but without a minus Connector 2 x level 0 ,9mm 60x27 result 1
this is what I send to the query to the sphinx

(соединитель|*соединитель*) & (2-х|*2-х*) & (уровневый|*уровневый*) & (9мм|*9мм*) & (60х27|*60х27*)

found these things
blend_chars = U+2d
charset_table = 0..9, A..Z->a..z, _, a..z, \
U+410..U+42F->U+430.. U+44F, U+430..U+44F, U+401->U+451, U+451
at the bet even separately this in the config, the sphinx says that the error
using config file '/etc/sphinxsearch/sphinx.conf'...
ERROR: unknown key name 'charset_table' in /etc/sphinxsearch/sphinx.conf line 123 col 15.
FATAL: failed to parse config file '/etc/sphinxsearch/sphinx.conf'

did so far through regexp /\-/i
what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-02-17
@opium

Read those documents of the sphinx, it says there is no such option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question