Re: Scoring on multi-valued fields

2010-08-06 Thread Chris Hostetter
: The other would be to somehow control the scores of each id. So a document : with 2 ids matching should be worth more then the document with only 1 id : matching (This is how it works now) but a document with 7 ids matching : shouldn't be worth more, or at least not a lot more, then a document t

Re: Scoring on multi-valued fields

2010-08-03 Thread oleg.gnatovskiy
Well that does take care of some cases. How about if we still want a hit on a tag to contribute to the weight though? There would be 2 options. One is the one I described in the original post, which is to grab the highest score of a set of ids. The other would be to somehow control the scores

Re: Scoring on multi-valued fields

2010-08-03 Thread Yonik Seeley
On Tue, Aug 3, 2010 at 3:16 PM, oleg.gnatovskiy wrote: > > Sorry guess I messed up my example query. The query should look like this: > > name:pizza AND id:(10 OR 20 OR 30) > > Thus if I do name:pizza^10 AND id:(10 OR 20 OR 30)^0 wouldn't a document > that has all the ids (10,20, and 30) still com

Re: Scoring on multi-valued fields

2010-08-03 Thread oleg.gnatovskiy
Sorry guess I messed up my example query. The query should look like this: name:pizza AND id:(10 OR 20 OR 30) Thus if I do name:pizza^10 AND id:(10 OR 20 OR 30)^0 wouldn't a document that has all the ids (10,20, and 30) still come up higher then a document that has just one? -- View this messa

Re: Scoring on multi-valued fields

2010-08-03 Thread Yonik Seeley
On Tue, Aug 3, 2010 at 2:42 PM, oleg.gnatovskiy wrote: > > Oh sorry guys, I didn't correctly submit my original post to the mailing > list. The original message was this: > " > Hello all. We are having some trouble with queries similar to the type shown > below: > > name: pizza OR (id:10 OR id:20

Re: Scoring on multi-valued fields

2010-08-03 Thread oleg.gnatovskiy
Oh sorry guys, I didn't correctly submit my original post to the mailing list. The original message was this: " Hello all. We are having some trouble with queries similar to the type shown below: name: pizza OR (id:10 OR id:20 OR id:30) (id is a multi-valued field) With the above query, we will

Re: Scoring on multi-valued fields

2010-08-03 Thread oleg.gnatovskiy
I checked the explain query. What happens is that the sums of all the hits on ID are added up. Is there a way to only grab the first score? Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Scoring-on-multi-valued-fields-tp1017624p1020150.html Sent from the Solr - Use