DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32053>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32053

sort while using MultiSearcher

           Summary: sort while using MultiSearcher
           Product: Lucene
           Version: 1.4
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Search
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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 don't found other interfaces to solve it, so the sort result is wrong.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to