lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran" <amo...@infosciences.com>
Subject [PATCH] [Bug 30242] Make a getter for SortField[] fields in org.apache.lucene.search.Sort
Date Wed, 21 Jul 2004 19:50:37 GMT
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
+++ 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();
 


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

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

           Summary: Make a getter for SortField[] fields in
                    org.apache.lucene.search.Sort
           Product: Lucene
           Version: 1.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Search
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: amordo@infosciences.com


I'm have my own Collector and I would like to use the Sort object within my
collector, but SortField[] fields; is not accessible outside Lucene's
package. Can you please consider making a public getFields() method in the
Sort object so we can use it in our implementation?

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