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 TestDateFilter.java
Date Wed, 08 May 2002 19:48:04 GMT
carlson     02/05/08 12:48:04

  Modified:    src/test/org/apache/lucene/search TestDateFilter.java
  Log:
  Changed TestDateFilter from date field being a Text field to being a Keyword field. Found
by Doug.
  
  Revision  Changes    Path
  1.3       +3 -3      jakarta-lucene/src/test/org/apache/lucene/search/TestDateFilter.java
  
  Index: TestDateFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestDateFilter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestDateFilter.java	19 Apr 2002 20:29:19 -0000	1.2
  +++ TestDateFilter.java	8 May 2002 19:48:04 -0000	1.3
  @@ -73,7 +73,7 @@
     * DateFilter JUnit tests.
     *
     * @author Otis Gospodnetic
  -  * @version $Revision: 1.2 $
  +  * @version $Revision: 1.3 $
     */
   public class TestDateFilter
       extends TestCase
  @@ -97,7 +97,7 @@
   
    	Document doc = new Document();
    	// add time that is in the past
  - 	doc.add(Field.Text("datefield", DateField.timeToString(now - 1000)));
  + 	doc.add(Field.Keyword("datefield", DateField.timeToString(now - 1000)));
    	doc.add(Field.Text("body", "Today is a very sunny day in New York City"));
     	writer.addDocument(doc);
    	writer.optimize();
  @@ -155,7 +155,7 @@
   
    	Document doc = new Document();
    	// add time that is in the future
  - 	doc.add(Field.Text("datefield", DateField.timeToString(now - 888888)));
  + 	doc.add(Field.Keyword("datefield", DateField.timeToString(now - 888888)));
    	doc.add(Field.Text("body", "Today is a very sunny day in New York City"));
     	writer.addDocument(doc);
    	writer.optimize();
  
  
  

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