Re: How to sort and get document scores afterwards

2009-10-15 Thread Michael McCandless
Yeah this was a change in 2.9... but you can get the scores back, if you do this: TopFieldCollector tfc = TopFieldCollector.create(sort, numHits, fillFields, true /* trackDocScores */,

RE: How to sort and get document scores afterwards

2009-10-15 Thread Uwe Schindler
The default API searcher.search works like this now. If you want to control, the retrieval of scores, create a TopFieldCollector directly: http://lucene.apache.org/java/2_9_0/api/all/org/apache/lucene/search/TopFiel dCollector.html The static create methods has many possibilities to control the be