lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl <jan....@cominvent.com>
Subject Re: Boost matches occurring early in the field (offset)
Date Wed, 29 Aug 2018 13:24:46 GMT
I have seen that one. But as I understand spanFirst, it only allows you to define a boost if
your span matches, i.e. not a gradually lower score the further down in the document the match
is?

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

> 29. aug. 2018 kl. 12:26 skrev Mikhail Khludnev <mkhl@apache.org>:
> 
> <SpanFirst>
> <https://lucene.apache.org/solr/guide/6_6/other-parsers.html#OtherParsers-XMLQueryParser>
> 
> On Wed, Aug 29, 2018 at 1:19 PM Jan Høydahl <jan.asf@cominvent.com> wrote:
> 
>> Hi,
>> 
>> Is there an ootb way to boost term matches based on their position/offset
>> inside a field, so that the term gets a higher score if it occurs in the
>> befinning of the field and lower boost or a deboost if it occurs towards
>> the end of a field?
>> 
>> I know that I could index the first part of the text in a new field and
>> boost on that, but that is kind of "binary".
>> I could also add the term offset as payload for every term and boost on
>> that, but this should not be necessary since offset info is already part of
>> the index?
>> 
>> --
>> Jan Høydahl, search solution architect
>> Cominvent AS - www.cominvent.com
>> 
>> 
> 
> -- 
> Sincerely yours
> Mikhail Khludnev


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