lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Organ <dor...@donaldorgan.com>
Subject Re: Boosting on field empty or not
Date Tue, 15 May 2012 19:28:58 GMT
Scratch that...it still seems to be boosting documents where the value of
the field is empty.


bq=regularprice:[0.01 TO *]^50

Results with bq set:

<doc>
    <float name="score">2.2172112</float>
    <str name="code">bhl-ltab-30</str>
  </doc>


Results without bq set:

<doc>
    <float name="score">2.4847748</float>
    <str name="code">bhl-ltab-30</str>
  </doc>


On Tue, May 15, 2012 at 12:40 PM, Donald Organ <dorgan@donaldorgan.com>wrote:

> I have figured it out using your recommendation...I just had to give it a
> high enough boost.
>
> BTW its a float field
>
> On Tue, May 15, 2012 at 9:21 AM, Ahmet Arslan <iorixxx@yahoo.com> wrote:
>
>> > The problem with what you provided is
>> > it is boosting ALL documents whether
>> > the field is empty or not....
>>
>> Then all of your fields are non-empty? What is the type of your field?
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message