S
S
Sergey Protasov2016-10-14 22:04:22
Sphinx
Sergey Protasov, 2016-10-14 22:04:22

How to exclude one record from search with id?

It is necessary to organize the search for similar articles by the title of the article. In the search in the first place the same article.
How to exclude it from the search by id?
There is a function SetIDRange($min, $max); But here min and max id are set.
I can't think of anything but to duplicate the id in the attribute and use:

SetFilter ( $qid,  array($exclude_id), $exclude=true)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-10-15
@opium

Eliminate it in the code itself, not the sphinx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question