git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@478361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Wolfgang Hoschek 2006-11-22 22:57:59 +00:00
parent cdb3440645
commit aeb9723407
1 changed files with 4 additions and 2 deletions

View File

@ -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