is a MultiSearcher bug?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   gao_fei
Posted On:   Thursday, November 4, 2004 04:41 AM

I am using MultiSearcher search multi index directory, want to sort by INDEX ORDER.
In search() method, scoreDocs has been merged into hq and the doc id changed to a global value.
But ,when into FieldDocSortedHitQueue.lessThan(): i found in "SortField.DOC" case, the value used to compare comes from "((Integer)docA.fields[i]).intValue()" which is not the global value just given (docA.doc).
So, the comparision and the sort combine the results from multi index directory without gloabl order.
WHY?
i cannot find other interfaces to solve it, so the sort result is wrong.

About | Sitemap | Contact