I am new to Lucene.NET and have already run into a (I think) difficult problem. I have an object lets say a "Company", now there are 3 different types of companies ordered by importance from low to high.
If I query for a search term I would like to give a "boost" factor to companies which have a high importance for example (pseudo code):
[Boost("If Importance is = 1 then 1, If Importance is 2 then 2, If Importance is 3 then 3")]
public int Importance
{get;set;}
Hopefully you know what I mean, thanks!
Try storing importance as a field, and sorting your search results by that field.
Section 5.2.4 in Lucene In Action covers this.
You could also try looking into Function Queries (section 5.7)