lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26702] - [PATCH] arbitrary sorting
Date Wed, 11 Feb 2004 15:23:00 GMT
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 tjones@hoovers.com  2004-02-11 15:22 -------
what do you think about making FieldDoc a subclass of ScoreDoc:

   class FieldDoc extends ScoreDoc {
      public Object[] fields;
      public FieldDoc (int doc, float score, Object[] fields) {
         super (doc, score);
         this.fields = fields;
      }
   }

so that TopDocs remains the same, and the signature for the new method in
Searchable would be:

   TopDocs search (Query q, Filter f, int n, SortField[] sort_fields);

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message