lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r391763 - /lucene/java/trunk/contrib/surround/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
Date Wed, 05 Apr 2006 19:55:32 GMT
Author: yonik
Date: Wed Apr  5 12:55:30 2006
New Revision: 391763

URL: http://svn.apache.org/viewcvs?rev=391763&view=rev
Log:
(LUCENE-539) Fix for deprecations in contrib/surround

Modified:
    lucene/java/trunk/contrib/surround/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java

Modified: lucene/java/trunk/contrib/surround/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/surround/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java?rev=391763&r1=391762&r2=391763&view=diff
==============================================================================
--- lucene/java/trunk/contrib/surround/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
(original)
+++ lucene/java/trunk/contrib/surround/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
Wed Apr  5 12:55:30 2006
@@ -131,19 +131,6 @@
       spanQueries[i++] = sq;
     }
     
-    /* CHECKME: Does the underlying implementation of SpanQuery need sorting? */
-    if (false) /* true when sorting needed */
-      Arrays.sort(spanQueries, new Comparator() { 
-        public int compare(Object o1, Object o2) {
-          SpanQuery sq1 = (SpanQuery) o1;
-          SpanQuery sq2 = (SpanQuery) o2;
-          /* compare the text of the first term of each SpanQuery */
-          return  ((Term)sq1.getTerms().iterator().next()).text().compareTo(
-                  ((Term)sq2.getTerms().iterator().next()).text());
-        }
-        public boolean equals(Object o) {return false;}
-      });
-       
     if (spanQueries.length == 1)
       return spanQueries[0];
     else



Mime
View raw message