lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Re: Relevance by term position
Date Fri, 28 Jun 2019 13:46:31 GMT
This past thread may be relevant: https://markmail.org/message/aau6bjllkpwcpmro
It suggests that using SpanFirst of XMLQueryParser will have automatic
boost for earlier matches.
The other approach suggested was to use Payloads (which got better
since the original thread).

Regards,
   Alex.

On Thu, 27 Jun 2019 at 22:01, Jay Potharaju <jspotharaju@gmail.com> wrote:
>
> Hi,
> I am trying to implement autocomplete feature that should rank documents based on term
position in the search field.
> Example-
> Doc1- hello world
> Doc2- blue sky hello
> Doc3 - John hello
>
> Searching for hello should return
> Hello world
> John hello
> Blue sky hello
>
> I am currently using ngram to do autocomplete. But this does not allow me to rank results
based on term position.
>
> Any suggestions on how this can be done?
> Thanks
>

Mime
View raw message