mirror of https://github.com/apache/lucene.git
PR: 12723 Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149915 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eeff286786
commit
ca1240bec6
|
@ -132,10 +132,10 @@ public final class Field implements java.io.Serializable {
|
|||
return new Field(name, value, true, true, true);
|
||||
}
|
||||
|
||||
/** Constructs a Date-valued Field that is tokenized and indexed,
|
||||
and is stored in the index, for return with hits. */
|
||||
/** Constructs a Date-valued Field that is not tokenized and is indexed,
|
||||
and stored in the index, for return with hits. */
|
||||
public static final Field Keyword(String name, Date value) {
|
||||
return new Field(name, DateField.dateToString(value), true, true, true);
|
||||
return new Field(name, DateField.dateToString(value), true, true, false);
|
||||
}
|
||||
|
||||
/** Constructs a String-valued Field that is tokenized and indexed,
|
||||
|
|
Loading…
Reference in New Issue