lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r955518 - /lucene/dev/trunk/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
Date Thu, 17 Jun 2010 09:07:04 GMT
Author: mikemccand
Date: Thu Jun 17 09:07:04 2010
New Revision: 955518

URL: http://svn.apache.org/viewvc?rev=955518&view=rev
Log:
LUCENE-2502: remove dead code

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

Modified: lucene/dev/trunk/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java?rev=955518&r1=955517&r2=955518&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
(original)
+++ lucene/dev/trunk/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/query/SpanNearClauseFactory.java
Thu Jun 17 09:07:04 2010
@@ -53,15 +53,10 @@ Operations:
  */
 
 import java.io.IOException;
-import java.util.HashMap;
 import java.util.Iterator;
-
+import java.util.HashMap;
 import org.apache.lucene.index.IndexReader;
 import org.apache.lucene.index.Term;
-import org.apache.lucene.index.Terms;
-import org.apache.lucene.index.TermsEnum;
-import org.apache.lucene.index.MultiFields;
-import org.apache.lucene.util.BytesRef;
 import org.apache.lucene.search.Query;
 import org.apache.lucene.search.spans.SpanNearQuery;
 import org.apache.lucene.search.spans.SpanOrQuery;
@@ -87,17 +82,6 @@ public class SpanNearClauseFactory {
 
   public BasicQueryFactory getBasicQueryFactory() {return qf;}
   
-  public TermsEnum getTermsEnum(String termText) throws IOException {
-    Terms terms = MultiFields.getTerms(getIndexReader(), getFieldName());
-    if (terms != null) {
-      TermsEnum termsEnum = terms.iterator();
-      termsEnum.seek(new BytesRef(termText));
-      return termsEnum;
-    } else {
-      return null;
-    }
-  }
-  
   public int size() {return weightBySpanQuery.size();}
   
   public void clear() {weightBySpanQuery.clear();}



Mime
View raw message