Answer the question
In order to leave comments, you need to log in
Someone help with Sphinxsearch?
Hello. I did a movie search. Everything works, but for some reason I can not do the
search ranking.
Set via API $ sphinx-
>SetFieldWeights(array ('item_runame' => 100,'nameru'=>100, 'realname' => 20,
'description'=>0));
But the first result is a movie whose search word is only in the description. Moreover, the
word occurs only once in the description field.
Maybe I'm doing something wrong? In the config, I do not display these fields at all
sql_attr_timestamp = item_time_add
sql_attr_uint = filmID
sql_attr_uint = stype
But I specify them in the index itself:
sql_query = \
SELECT a.id, a.`item_runame`, a.`item_originalname`, a.`file_description`…
Searching only on the field name (item_runame) or on the description field works fine.
It is necessary that field matches (item_runame have more weight.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question