A
A
Artem Ershov2014-01-16 11:14:45
PHP
Artem Ershov, 2014-01-16 11:14:45

How to merge two similar sphinx queries into one?

There are two queries to sphinx:

SphinxClient->Query('@name почта', '*');
SphinxClient->Query('@name *почта*', '*');
Some of the results for these queries do not intersect. That is, some results come out only on the first request, some only on the second.
I tried a bunch of query options with "or" like "@name (mail | *mail*)" and without "@name (mail *mail*)". In all these cases, the result is some strange intersection of the first two queries - their intersection + one result from the first query.
Basically, I don't know what to think.
UPD: reformulated my problem more precisely and framed it in another question

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SiDChik, 2014-01-16
@SiDChik

sphinx supports multi-queries, link to documentation if it is sphinxsearch.com/docs/archives/1.10/multi-queries.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question