I have content with various numeric values, and a higher value indicates (theoretically) more valuable content, which I want to rank higher.
For instance:
- Average rating (0 – 5)
- Number of comments (0 – whatever)
- Number of inbound link references from other pages (0 – whatever)
- Some arbitrary number I apply to indicate how important I feel the content is (1 – whatever)
These can be indexed by Lucene as a numeric value, but how can I tell Lucene to use this value in its ranking algorithm?
you can set this value using “Field.SetBoost” while indexing.