RE: custom scorer in Solr

2010-06-15 Thread Fornoville, Tom
locality4:Antwerp). I have no idea how this can be rewritten in SolrJ using a standard dismax query. So in conclusion I think this client will probably need a custom QParser. Time to start reading and experimenting I guess. Regards, Tom -Original Message----- From: Chris Hostetter [mailto:h

Re: custom scorer in Solr

2010-06-14 Thread Chris Hostetter
: Problem is that they want scores that make results fall in buckets: : : * Bucket 1: exact match on category (score = 4) : * Bucket 2: exact match on name (score = 3) : * Bucket 3: partial match on category (score = 2) : * Bucket 4: partial match on name (score = 1) ... :

RE: custom scorer in Solr

2010-06-14 Thread Fornoville, Tom
bucket. I'll keep you updated on how this works out. -Original Message- From: Geert-Jan Brits [mailto:gbr...@gmail.com] Sent: maandag 14 juni 2010 11:00 To: solr-user@lucene.apache.org Subject: Re: custom scorer in Solr First of all, Do you expect every query to return results for

Re: custom scorer in Solr

2010-06-14 Thread Geert-Jan Brits
Just to be clear, this is for the use-case in which it is ok that potentially only 1 bucket gets filled. 2010/6/14 Geert-Jan Brits > First of all, > > Do you expect every query to return results for all 4 buckets? > i.o.w: say you make a Sortfield that sorts for score 4 first, than 3, 2, > 1. >

Re: custom scorer in Solr

2010-06-14 Thread Geert-Jan Brits
First of all, Do you expect every query to return results for all 4 buckets? i.o.w: say you make a Sortfield that sorts for score 4 first, than 3, 2, 1. When displaying the first 10 results, is it ok that these documents potentially all have score 4, and thus only bucket 1 is filled? If so, I can

RE: custom scorer in Solr

2010-06-14 Thread Fornoville, Tom
I've been investigating this further and I might have found another path to consider. Would it be possible to create a custom implementation of a SortField, comparable to the RandomSortField, to tackle the problem? I know it is not your standard question but would really appreciate all feedback