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 Nelson Branco <ne...@telecom.pt> on 2010/12/23 14:55:16 UTC

Custom match scoring

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