lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carl...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/search TestWildcard.java
Date Thu, 09 May 2002 14:38:25 GMT
carlson     02/05/09 07:38:22

  Modified:    src/test/org/apache/lucene/search TestWildcard.java
  Log:
  Fixed the TestQuestionMark by changing the TermQuery to WildcarQuery for the first test.
 Now succeeds without failure.
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-lucene/src/test/org/apache/lucene/search/TestWildcard.java
  
  Index: TestWildcard.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestWildcard.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestWildcard.java	19 Apr 2002 18:53:35 -0000	1.1
  +++ TestWildcard.java	9 May 2002 14:38:22 -0000	1.2
  @@ -135,7 +135,7 @@
           writer.addDocument(doc4);
   	writer.optimize();
   	IndexSearcher searcher = new IndexSearcher(indexStore);
  -	Query query1 = new TermQuery(new Term("body", "m?tal"));       // 1
  +	    Query query1 = new WildcardQuery(new Term("body", "m?tal"));       // 1
           Query query2 = new WildcardQuery(new Term("body", "metal?"));  // 2
           Query query3 = new WildcardQuery(new Term("body", "metals?")); // 1
           Query query4 = new WildcardQuery(new Term("body", "m?t?ls"));  // 3
  
  
  

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


Mime
View raw message