- getLoggingAnalyzer(Analyzer, PrintStream, String) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns a simple analyzer wrapper that logs all tokens produced by the
underlying child analyzer to the given log stream (typically System.err);
Otherwise behaves exactly like the child analyzer, delivering the very
same tokens; useful for debugging purposes on custom indexing and/or
querying.
- getMaxTokenAnalyzer(Analyzer, int) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns an analyzer wrapper that returns at most the first
maxTokens
tokens from the underlying child analyzer,
ignoring all remaining tokens.
- getMemorySize() - Method in class org.apache.lucene.index.memory.MemoryIndex
-
Returns a reasonable approximation of the main memory [bytes] consumed by
this instance.
- getMostFrequentTerms(Analyzer, String, int) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns (frequency:term) pairs for the top N distinct terms (aka words),
sorted descending by frequency (and ascending by term, if tied).
- getParagraphs(String, int) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns at most the first N paragraphs of the given text.
- getPorterStemmerAnalyzer(Analyzer) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns an English stemming analyzer that stems tokens from the
underlying child analyzer according to the Porter stemming algorithm.
- getSentences(String, int) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns at most the first N sentences of the given text.
- getSynonymAnalyzer(Analyzer, SynonymMap, int) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns an analyzer wrapper that wraps the underlying child analyzer's
token stream into a
SynonymTokenFilter
.
- getSynonyms(String) - Method in class org.apache.lucene.index.memory.SynonymMap
-
Returns the synonym set for the given word, sorted ascending.
- getTokenCachingAnalyzer(Analyzer) - Static method in class org.apache.lucene.index.memory.AnalyzerUtil
-
Returns an analyzer wrapper that caches all tokens generated by the underlying child analyzer's
token streams, and delivers those cached tokens on subsequent calls to
tokenStream(String fieldName, Reader reader)
if the fieldName has been seen before, altogether ignoring the Reader parameter on cache lookup.