Re: Query not working as expected

2009-08-18 Thread Matt Schraeder
Awesome that works great. Thanks a lot! >>> markrmil...@gmail.com 8/17/2009 5:32:46 PM >>> Matt Schraeder wrote: > I'm attempting to write a query as follows: > > ($query^10) OR (NOT ($query)) which effectively would return everything, but > if it matches t

RE: Query not working as expected

2009-08-17 Thread Matt Schraeder
s back. It is set by default to 10 I believe. -Original Message- From: Matt Schraeder [mailto:mschrae...@btsb.com] Sent: Monday, August 17, 2009 2:04 PM To: solr-user@lucene.apache.org Subject: Query not working as expected I'm attempting to write a query as follows: ($query^1

Query not working as expected

2009-08-17 Thread Matt Schraeder
I'm attempting to write a query as follows: ($query^10) OR (NOT ($query)) which effectively would return everything, but if it matches the first query it will get a higher score and thus be sorted first in the result set. Unfortunately the results are not coming back as expected. ($query) w

Re: Multivalued fields and scoring/sorting

2009-07-17 Thread Matt Schraeder
our desired ordering, and this order can be further tweaked with other bf or bq arguments. -Peter On Thu, Jul 16, 2009 at 9:15 AM, Matt Schraeder wrote: > 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 cust

Re: Multivalued fields and scoring/sorting

2009-07-16 Thread Matt Schraeder
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 Schraeder wrote

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: