Hello all,

I'm answering my own post, hoping someone will comment.

I thought about two possibilities to solve my problem:

1) giving NAME_ANALYZED a type where omitNorms=false: I thought this would
give answers with shorter NAME_ANALYZED field a higher score. I've tested
that solution, but it's not working. I guess this is because there is no
score for fq parameter (all my answers have same score)

2) sorting my answers by length desc, and I guess in this case I would need
to store the length of NAME_ANALYZED field to avoid having to compute it on
the fly. at this point, this is the only solution I can think of.

Any comment would be appreciated,
Thanks,
Elisabeth



2011/9/16 elisabeth benoit <elisaelisael...@gmail.com>

>
> Hello,
>
> Iif I have a request with
>
> fq=NAME_ANALYZED:tour eiffel
>
> and I have different answers like
>
> Restaurant la tour Eiffel
> Hotel la tour Eiffel
> Tour Eiffel
> ...
>
> Is there a way to get answers with NAME_ANALYZED beginning with "tour
> Eiffel" first?
>
> Thanks,
> Elisabeth
>

Reply via email to