I was doing something wrong. Bisecting the result set does not work. Using a much larger boost and ORing with the entire index does work. Thanks.
*:* OR duration:3^20.0 works -duration:3 OR duration:3^20 gives empty result set Now we come to another question: why doesn't "X OR -X" select the entire index? Thanks, Lance -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yonik Seeley Sent: Thursday, March 20, 2008 12:34 PM To: solr-user@lucene.apache.org Subject: Re: Preferential boosting On Thu, Mar 20, 2008 at 3:13 PM, Lance Norskog <[EMAIL PROTECTED]> wrote: > Suppose I have a schema with an integer field called 'duration'. I > want to find all records, but if the duration is 3 I want those > records to be boosted. > > The index has 10 records, with duration between 2 and 4. What is the > query that will find all of the records and place the records with > duration 3 above the others? > > These do not work (at least for me): > > *:* OR duration:3^2.0 > duration:[* TO *] duration:3^2.0 In what way don't these work? Perhaps a bigger boost would help? -Yonik