On Jan 9, 2009, at 12:56 PM, Eric Kilby wrote:
Each document has a multivalued field, with 1-n values in it (as many as 20). The actual values don't matter to me, but the number of values is a rough proxy for the quality of a record. I'd like to apply a very small boost based on the number of values in that field, so that among a set of similar documents the ones with more values will score higher and sort ahead
of those with less values.

The simplest technique would be to have your indexer add another field with the count (or some boost factor based on it), and then leverage that. Perhaps even use the document boost capability at indexing time.

        Erik

Reply via email to