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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26702

[PATCH] arbitrary sorting





------- Additional Comments From [EMAIL PROTECTED]  2004-02-12 17:55 -------
I have posted new code which adds a method definition to Searchable.  If you
have unpacked the previous code into your source tree, you should delete all
those files.  Also, remove the file ..lucene.search.IntegerSortedSearcher.java
which is in CVS.

The code still needs to be cleaned up a little (javadocs, etc.) but I wanted to
post it so everyone could look at the API and see if it looks ok.  A summary:

I created a new class Sort which is used to define the sort criteria to queries
(if unspecified, hits are returned by relevance score).  So in Searcher there is
a new method:

    public Hits search (Query query, Filter filter, Sort sort)

The sort criteria can be changed between successive calls to search().

The Searchable API is as previously discussed:

    TopFieldDocs search (Query q, Filter f, int n, SortField[] fields)

TopFieldDocs is a new object which is like TopDocs, but also contains the sort
criteria used.  This is so multisearchers can figure out how to collate results
from several sorted Searchables.

Please take a look and let me know if like the approach.  If so, I will finish
cleaning up the code so it can be committed.

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

Reply via email to