mirror of https://github.com/apache/lucene.git
- Fixed a bug in the test itself, caught by Doug.
Duh, correct comment, but contradicting code. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7ac655d83a
commit
04292ff887
|
@ -155,7 +155,7 @@ public class TestDateFilter
|
||||||
|
|
||||||
Document doc = new Document();
|
Document doc = new Document();
|
||||||
// add time that is in the future
|
// add time that is in the future
|
||||||
doc.add(Field.Keyword("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"));
|
doc.add(Field.Text("body", "Today is a very sunny day in New York City"));
|
||||||
writer.addDocument(doc);
|
writer.addDocument(doc);
|
||||||
writer.optimize();
|
writer.optimize();
|
||||||
|
|
Loading…
Reference in New Issue