A
A
Andrey Shaydurov2011-08-13 01:28:10
Sphinx
Andrey Shaydurov, 2011-08-13 01:28:10

Sphinx: similarity of non-strict queries?

The problem is this: Let's say there are two entries:
1) Bash.org humor - humor from internet users.
2) Ray William Johnson's videos: reviews of humor videos.
When I query "humour" I get 1) then 2).
When I make a request for "humour video" I only get 2).
When I make the request "humour | video", I get 1), then 2), because it's just a logical merging of the results.
But I need to make some request (not a user-side, in a delayed task, so it’s possible on a vigorous SphinxQL) of the “humor video” type, which will give me 2), then 1), i.e. results of non-strict match to keywords, but they must be sorted by relevance.
Ideally, it would still be possible to make both ordinary user search queries and such non-strict ones on one instance, i.e. so that you do not have to change the searchd and indexer configs.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shedar, 2011-08-13
@Shedar

Look up "quorum matching operator".
sphinxsearch.com/docs/2.0.1/extended-syntax.html
i.e. the request will be something like "humour video"/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question