I am using raw queries in examine to provide a faceted search which includes a couple of select boxes with pre values and a free text field which searches against several fields in my examine index. I now have a need to implement 'featured' items in the results set which appear in top positions ahead of other matches, but only in cases where the free text field fails to find a direct hit on an input search term. I have been looking at the set boost methods for boosting fields but do not know if that is going to meet my needs, so have begun also to the scorer used by examine when searching. I have seen this code. does anyone have experience of using the QueryScorer class when querying like
var searcher = ExamineManager.Instance.SearchProviderCollection[searchProvider];
var searchCriteria = searcher.CreateSearchCriteria();
Examine search results order
I am using raw queries in examine to provide a faceted search which includes a couple of select boxes with pre values and a free text field which searches against several fields in my examine index. I now have a need to implement 'featured' items in the results set which appear in top positions ahead of other matches, but only in cases where the free text field fails to find a direct hit on an input search term. I have been looking at the set boost methods for boosting fields but do not know if that is going to meet my needs, so have begun also to the scorer used by examine when searching. I have seen this code. does anyone have experience of using the QueryScorer class when querying like
var searcher = ExamineManager.Instance.SearchProviderCollection[searchProvider]; var searchCriteria = searcher.CreateSearchCriteria();
is working on a reply...