mirror of https://github.com/apache/lucene.git
clarify null term text
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@513142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
66d4eb336f
commit
1e1f9bddb1
|
@ -29,7 +29,9 @@ public final class Term implements Comparable, java.io.Serializable {
|
|||
String field;
|
||||
String text;
|
||||
|
||||
/** Constructs a Term with the given field and text. */
|
||||
/** Constructs a Term with the given field and text.
|
||||
* <p>Note that a text value of null results in undefined
|
||||
* behavior for most Lucene APIs that accept a Term parameter. */
|
||||
public Term(String fld, String txt) {
|
||||
this(fld, txt, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue