Hmmm, have you looked at dismax? If I'm reading your message correctly, it
sounds
like this may already be there. Of course I've missed the point of messages
before.

Best
Erick

On Thu, Dec 23, 2010 at 10:29 AM, Nelson Branco <nelson-bra...@telecom.pt>wrote:

> Hi,
>
>
>
> I’m implementing a search that has peculiar scoring rules that, as I can
> see, isn’t supported natively.
>
>
>
> The rules are like:
>
> -          Given a set of tokens, the final score would be the sum of
> scores of all token by each token can only be scored for its best match over
> a set of fields that it might match
>
> i.e. “restaurant food” (2 tokens) must match “Category^10 Name^5
> Description”
>
>         the token “restaurant” might match documents with all fields but it
> must only be given the score of “Category” match
>
>         the token “food” also counts for the score, again, with its best
> match on any of indicated fields
>
>
>
> Can anyone guide me truth a solution or for a extension point where I can
> capture only the best match for a given field?
>
>
>
> Thanks in advance.
>
>
>
> --
>
> Nelson Branco
>

Reply via email to