开发者

is it possible to search for a result WITHIN a set of results when using sphinxsearch?

when using sphinxsearch, is it possible to search for a result within a set of results?

to simplify, imagine the following scenario:

searching for "computer", returns 3 results:

apple computer
ibm computer
evil computer

then within those results doing another search for "evil", which would return

evil computer

to those that would recommend consolidating the queries into a single one, we would like to run a MATCH ANY based query on the first result, and a MATCH ALL on the 2nd based query.开发者_如何转开发 so consolidating the queries wouldnt work.

thanks.


just wanted to chime in regarding this question.

this is possible using sphinxes extended matching mode.

a good writeup on how to do this is available in:

http://mmakaay.wordpress.com/2007/10/13/extended-query-building-for-the-sphinx-search-engine/

enjoy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜