Re: Multivalued fields and scoring/sorting

2009-07-17 Thread Matt Schraeder
That's what I'd like to do, but I don't understand how to get the value to boost it. It looks like I would need to use FunctionQueries, but it also looks like that doesn't work on multivalued fields. Am I mistaken? What kind of syntax would the query I'm trying to do require? >>> peter.wola...@ac

Re: Multivalued fields and scoring/sorting

2009-07-16 Thread Peter Wolanin
Assuming that you know the unique ID when constructing the query (which it sounds like you do) why not try a boost query with a high boost for 2 and a lower boost for 1 - then the default sort by score should match your desired ordering, and this order can be further tweaked with other bf or bq ar

Re: Multivalued fields and scoring/sorting

2009-07-16 Thread Matt Schraeder
The first number is a unique ID that points to a particular customer, the second is a value. It basically tells us whether or not a customer already has that product or not. The main use of it is to be able to search our product listing for products the customer does not already have. The alter

Re: Multivalued fields and scoring/sorting

2009-07-15 Thread Avlesh Singh
The harsh reality of life is that you cannot sort on multivalued fields. If you can explain your domain problem (the significance of numbers "818", "2" etc), maybe people can come up with an alternate index design which fits into your use cases. Cheers Avlesh On Thu, Jul 16, 2009 at 1:18 AM, Matt

Multivalued fields and scoring/sorting

2009-07-15 Thread Matt Schraeder
I am trying to come up with a way to sort (or score, and sort based on the score) of a multivalued field. I was looking at FunctionQueries and saw fieldvalue, but as that only works on single valued fields that doesn't help me. The field is as follows:

Re: scoring + sorting

2008-09-09 Thread Otis Gospodnetic
Solr - Nutch - Original Message > From: Sébastien Rainville <[EMAIL PROTECTED]> > To: solr-user > Sent: Tuesday, September 9, 2008 2:04:30 PM > Subject: scoring + sorting > > Hi, a basic thing I don't get is how does sorting interacts with the default >

scoring + sorting

2008-09-09 Thread Sébastien Rainville
Hi, a basic thing I don't get is how does sorting interacts with the default scoring? Sorting doesn't seem to do what I want. Both default scoring and sorting define the scoring of the documents so how can they work together? Does the sorting overrides things in the default scoring?