Re: Boost matches occurring early in the field (offset)

2018-09-17 Thread Ere Maijala
The original question is interesting and also I'd like to boost terms with lower positions, but if it's possible with the payload stuff, the slides and the article at https://lucidworks.com/2017/09/14/solr-payloads/ left me completely confused. A simple complete example would be so great.

Re: Boost matches occurring early in the field (offset)

2018-09-17 Thread Chris Hostetter
: 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? I believe you are incorrect. Unless something has drastically changed in SpanQuery in the past

Re: Boost matches occurring early in the field (offset)

2018-08-29 Thread Alexandre Rafalovitch
TokenOffsetPayloadTokenFilter ? It is mentioned in https://www.slideshare.net/lucidworks/payloads-in-solr-erik-hatcher-lucidworks , but no detailed example seems to be given. I do see this question from time to time, so a definitive feedback would be useful for the future. Regards, Alex. On

RE: Boost matches occurring early in the field (offset)

2018-08-29 Thread Markus Jelsma
To: solr-user > Subject: Re: Boost matches occurring early in the field (offset) > > I also tend to use "sentinel tokens" for exact match or to anchor a search. > But in order to obtain decaying boost the further down in the article a match > is, you'd need to write

Re: Boost matches occurring early in the field (offset)

2018-08-29 Thread Jan Høydahl
I also tend to use "sentinel tokens" for exact match or to anchor a search. But in order to obtain decaying boost the further down in the article a match is, you'd need to write several such span/slop queries with varying slops, e.g. highest boost for first 10 words, medium boost for first 50

Re: Boost matches occurring early in the field (offset)

2018-08-29 Thread Doug Turnbull
You can also insert a token at the beginning of the query during analysis using a char filter. I call these sort of boundary tokens "sentinel tokens". So a phrase search for "red shoes" becomes " red shoes". You can add some slop to allow for permissible distance (with You can also use the Limit

Re: Boost matches occurring early in the field (offset)

2018-08-29 Thread Jan Høydahl
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

Re: Boost matches occurring early in the field (offset)

2018-08-29 Thread Mikhail Khludnev
On Wed, Aug 29, 2018 at 1:19 PM Jan Høydahl 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

Boost matches occurring early in the field (offset)

2018-08-29 Thread Jan Høydahl
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