tags:

views:

168

answers:

0

Hi,

I'm executing lucene query using the statement because I need to have GroupBy functionality which I'm getting using TermFreqVectors. searcher.Search(finalQuery, collector); (line 1)

How do I sort these search results based on a field?

I find the order of search results using this query is different from the order got using: Hits hits = searcher.Search(myQuery);(line 2)

Also, using line 1, I sometimes get a score of over 100 percent after multiplying it by 100.

Which scoring algorithm of these two is more accurate?

Thanks!