lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/search TestMultiPhraseQuery.java
Date Wed, 24 Nov 2004 19:41:16 GMT
dnaber      2004/11/24 11:41:16

  Modified:    src/test/org/apache/lucene/search TestMultiPhraseQuery.java
  Log:
  don't append "*" to the term, it doesn't make sense and is confusing
  
  Revision  Changes    Path
  1.6       +3 -3      jakarta-lucene/src/test/org/apache/lucene/search/TestMultiPhraseQuery.java
  
  Index: TestMultiPhraseQuery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestMultiPhraseQuery.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestMultiPhraseQuery.java	10 Nov 2004 15:18:27 -0000	1.5
  +++ TestMultiPhraseQuery.java	24 Nov 2004 19:41:16 -0000	1.6
  @@ -72,7 +72,7 @@
   
           // this TermEnum gives "piccadilly", "pie" and "pizza".
           String prefix = "pi";
  -        TermEnum te = ir.terms(new Term("body", prefix + "*"));
  +        TermEnum te = ir.terms(new Term("body", prefix));
           do {
               if (te.term().text().startsWith(prefix))
               {
  @@ -95,7 +95,7 @@
           MultiPhraseQuery query3 = new MultiPhraseQuery();
           termsWithPrefix.clear();
           prefix = "blue";
  -        te = ir.terms(new Term("body", prefix + "*"));
  +        te = ir.terms(new Term("body", prefix));
           do {
               if (te.term().text().startsWith(prefix))
               {
  
  
  

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