15 jul 2008 kl. 10.07 skrev John Patterson:

I have a number of fields that are used to filter documents from a search. They should not contribute to the score of the document but merely decide which documents are valid. i.e. it doesn't matter how rare they are in the index. I also have a single "combined" field that is used for free text
searching and it should be scored as normal.

How can I turn off scoring of these "filter" fields?

I think all you need to do is to create a custom query (sounds like you want a clone of TermQuery) that uses a Scorer that always return 1f.


           karl



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to