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 30242] - [PATCH] Make a getter for SortField[] fields in org.apache.lucene.search.Sort
Date Fri, 30 Jul 2004 09:28:47 GMT
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=30242>.
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=30242

[PATCH] Make a getter for SortField[] fields in org.apache.lucene.search.Sort

otis@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Make a getter for           |[PATCH] Make a getter for
                   |SortField[] fields in       |SortField[] fields in
                   |org.apache.lucene.search.Sor|org.apache.lucene.search.Sor
                   |t                           |t



------- Additional Comments From otis@apache.org  2004-07-30 09:28 -------
Index: Sort.java
===================================================================
RCS file:
/home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/search/Sort.java,v
retrieving revision 1.7
diff -u -r1.7 Sort.java
--- Sort.java	5 Apr 2004 17:23:38 -0000	1.7
This is from amordo@infosciences.com (Aviran Mordo)

+++ Sort.java	21 Jul 2004 19:44:30 -0000
@@ -202,6 +202,15 @@
 		this.fields = fields;
 	}
 
+        /**
+         * Representation of the sort criteria
+         * @return Array of SortField objects used in this sort criteria
+         */
+        public SortField[] getSortFields()
+        {
+            return fields;
+        }
+
   public String toString() {
     StringBuffer buffer = new StringBuffer();

---------------------------------------------------------------------
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