Re: Merging results from two queries

2012-04-03 Thread John Chee
Karthick, I mean perform both query1 and query2 simultaneously, something like query1: (superpower:flight OR name:batman) query2: (superpower:speed AND name:flash) Could be transformed to: (superpower:flight^2 OR name:batman^2) OR (superpower:speed AND name:flash) This would give you all resul

Re: Merging results from two queries

2012-04-02 Thread Karthick Duraisamy Soundararaj
@Eric By threshold, all I mean is the count of the documents returned and I am not going to play with score. So if I have to commit my code to svn, whats the best way to go about it? I know I have to discuss my design here which would take atleast a couple of days. But is there special instructions

Re: Merging results from two queries

2012-04-02 Thread Erick Erickson
Part of it depends on what you mean by "threshold". If it's just the number of matches, then fine. But if you're talking score here, be very, very careful. Scores are not an absolute measure of anything, they only tell you that "for _this_ query, the docs should be order this way". So I'd advise a

Re: Merging results from two queries

2012-04-02 Thread John Chee
Karthick, The solution that I use to this problem is to perform query1 and query2 and boost results matching query1. Then solr takes care of all the deduplication (not necessarily merging) automatically, would this work for your situation? I stole this idea from this slide deck: "Make sure all r