Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

javadoc

Wolfgang Hoschekaeb9723407cd
diff --git a/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java b/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
index 8a4e4edc1dd..3f5dec32c33 100644
--- a/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
+++ b/contrib/memory/src/java/org/apache/lucene/index/memory/AnalyzerUtil.java
@@ -209,9 +209,11 @@ public class AnalyzerUtil {
* <p>
* This can help improve performance in the presence of expensive Analyzer / TokenFilter chains.
* <p>
- * Caveats: Caching only works if the methods equals() and hashCode() methods are properly
+ * Caveats:
+ * 1) Caching only works if the methods equals() and hashCode() methods are properly
* implemented on the Reader passed to <code>tokenStream(String fieldName, Reader reader)</code>.
- * Further, using caching on large Lucene documents can lead to out of memory exceptions.
+ * 2) Caching the tokens of large Lucene documents can lead to out of memory exceptions.
+ * 3) The Token instances delivered by the underlying child analyzer must be immutable.
*
* @param child
* the underlying child analyzer