You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2004/11/04 11:13:53 UTC
DO NOT REPLY [Bug 32053] New: -
sort while using MultiSearcher
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: lucene-dev@jakarta.apache.org
ReportedBy: feigao@sohu-inc.com
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: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org