Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

clarify null term text

Yonik Seeley1e1f9bddb1f2
diff --git a/src/java/org/apache/lucene/index/Term.java b/src/java/org/apache/lucene/index/Term.java
index 4ab1b5a8c32..278c9197797 100644
--- a/src/java/org/apache/lucene/index/Term.java
+++ b/src/java/org/apache/lucene/index/Term.java
@@ -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);
}