You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Samuel Kasimalla <sk...@gmail.com> on 2019/06/28 02:30:11 UTC

Re: Relevance by term position

Hi Jay,

We solve his problem by doing a regular search with a wildcard instead
of using autocomplete.

It’s a little bit extra work but the customizability and flexibility
makes it worth.

Thanks,
Sam


> On Jun 27, 2019, at 10:00 PM, Jay Potharaju <js...@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
>