开发者

Sphinx: kind of non-strict queries

I have such problem: for example, we have two items:

1) Bash.org humour - humour from internet users.

2) Ray William Johnson's videos: reviews of humour videos.

When I make a query "humour", I get 1), then 2). When I make query "humour video" I get only 2). When I make query "humour | video", I get 1), then 2), because it's just logical merging of results.

But I need to make some query (not for users, in backend delayed job, so it can be on extended sphinx query language) like "humour video", that gives me 2), then 1), i.e. non-strict results, but sorted by relevance for a phrase.

I开发者_JAVA技巧deally, it should allow to make normal queries and such non-strict queries with only one sphinx instance on the server.


I've found a quorum operator: query is '"humour video"/1'

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜