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, 10 Nov 2004 13:55:23 GMT
dnaber      2004/11/10 05:55:23

  Modified:    src/test/org/apache/lucene/search TestMultiPhraseQuery.java
  Log:
  fixing typo in variable name and incorrect comment
  
  Revision  Changes    Path
  1.3       +6 -4      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestMultiPhraseQuery.java	10 Nov 2004 11:39:25 -0000	1.2
  +++ TestMultiPhraseQuery.java	10 Nov 2004 13:55:23 -0000	1.3
  @@ -58,17 +58,19 @@
           Document doc3 = new Document();
           Document doc4 = new Document();
           Document doc5 = new Document();
  +        Document doc6 = new Document();
           doc1.add(new Field("body", "blueberry pie", Field.Store.YES, Field.Index.TOKENIZED));
           doc2.add(new Field("body", "blueberry strudel", Field.Store.YES, Field.Index.TOKENIZED));
           doc3.add(new Field("body", "blueberry pizza", Field.Store.YES, Field.Index.TOKENIZED));
           doc4.add(new Field("body", "blueberry chewing gum", Field.Store.YES, Field.Index.TOKENIZED));
  -        doc4.add(new Field("body", "bluebird pizza", Field.Store.YES, Field.Index.TOKENIZED));
  -        doc5.add(new Field("body", "piccadilly circus", Field.Store.YES, Field.Index.TOKENIZED));
  +        doc5.add(new Field("body", "bluebird pizza", Field.Store.YES, Field.Index.TOKENIZED));
  +        doc6.add(new Field("body", "piccadilly circus", Field.Store.YES, Field.Index.TOKENIZED));
           writer.addDocument(doc1);
           writer.addDocument(doc2);
           writer.addDocument(doc3);
           writer.addDocument(doc4);
           writer.addDocument(doc5);
  +        writer.addDocument(doc6);
           writer.optimize();
           writer.close();
   
  @@ -120,7 +122,7 @@
           query3.add(new Term("body", "pizza"));
   
           result = searcher.search(query3);
  -        assertEquals(2, result.length()); // blueberry pizza, blueberry chewing gum
  +        assertEquals(2, result.length()); // blueberry pizza, bluebird pizza
           assertEquals("body:\"(blueberry bluebird) pizza\"", query3.toString());
   
           MultiPhraseQuery query4 = new MultiPhraseQuery();
  
  
  

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