Package | Description |
---|---|
org.apache.lucene.analysis.charfilter |
Normalization of text before the tokenizer.
|
org.apache.lucene.analysis.hunspell |
Stemming TokenFilter using a Java implementation of the
Hunspell stemming algorithm.
|
org.apache.lucene.analysis.synonym |
Analysis components for Synonyms.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
org.apache.lucene.util.fst |
Finite state transducers
|
Modifier and Type | Field and Description |
---|---|
private CharsRef |
MappingCharFilter.replacement |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Character,FST.Arc<CharsRef>> |
MappingCharFilter.cachedRootArcs |
(package private) java.util.Map<java.lang.Character,FST.Arc<CharsRef>> |
NormalizeCharMap.cachedRootArcs |
private FST<CharsRef> |
MappingCharFilter.map |
(package private) FST<CharsRef> |
NormalizeCharMap.map |
private Outputs<CharsRef> |
MappingCharFilter.outputs |
private FST.Arc<CharsRef> |
MappingCharFilter.scratchArc |
Constructor and Description |
---|
NormalizeCharMap(FST<CharsRef> map) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<CharsRef> |
HunspellStemFilter.buffer |
(package private) FST<CharsRef> |
Dictionary.iconv |
(package private) static java.util.Comparator<CharsRef> |
HunspellStemFilter.lengthComparator |
(package private) FST<CharsRef> |
Dictionary.oconv |
Modifier and Type | Method and Description |
---|---|
private CharsRef |
Stemmer.newStem(char[] buffer,
int length,
IntsRef forms,
int formID) |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<CharsRef> |
Stemmer.applyAffix(char[] strippedWord,
int length,
int affix,
int prefixFlag,
int recursionDepth,
boolean prefix,
boolean circumfix,
boolean caseVariant)
Applies the affix rule to the given word, producing a list of stems if any are found
|
private java.util.List<CharsRef> |
Stemmer.doStem(char[] word,
int length,
boolean caseVariant) |
private FST<CharsRef> |
Dictionary.parseConversions(java.io.LineNumberReader reader,
int num) |
java.util.List<CharsRef> |
Stemmer.stem(char[] word,
int length)
Find the stem(s) of the provided word
|
private java.util.List<CharsRef> |
Stemmer.stem(char[] word,
int length,
int previous,
int prevFlag,
int prefixFlag,
int recursionDepth,
boolean doPrefix,
boolean doSuffix,
boolean previousWasPrefix,
boolean circumfix,
boolean caseVariant)
Generates a list of stems for the provided word
|
java.util.List<CharsRef> |
Stemmer.stem(java.lang.String word)
Find the stem(s) of the provided word.
|
java.util.List<CharsRef> |
Stemmer.uniqueStems(char[] word,
int length)
Find the unique stem(s) of the provided word
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
Dictionary.applyMappings(FST<CharsRef> fst,
java.lang.StringBuilder sb) |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<CharsRef,SynonymMap.Builder.MapEntry> |
SynonymMap.Builder.workingSet |
Modifier and Type | Method and Description |
---|---|
CharsRef |
SynonymMap.Parser.analyze(java.lang.String text,
CharsRefBuilder reuse)
Sugar: analyzes the text with the analyzer and
separates by
SynonymMap.WORD_SEPARATOR . |
static CharsRef |
SynonymMap.Builder.join(java.lang.String[] words,
CharsRefBuilder reuse)
Sugar: just joins the provided terms with
SynonymMap.WORD_SEPARATOR . |
private CharsRef |
WordnetSynonymParser.parseSynonym(java.lang.String line,
CharsRefBuilder reuse) |
CharsRef |
SynonymFilter.PendingOutputs.pullNext() |
Modifier and Type | Method and Description |
---|---|
void |
SynonymMap.Builder.add(CharsRef input,
CharsRef output,
boolean includeOrig)
Add a phrase->phrase synonym mapping.
|
private void |
SynonymMap.Builder.add(CharsRef input,
int numInputWords,
CharsRef output,
int numOutputWords,
boolean includeOrig) |
private void |
WordnetSynonymParser.addInternal(CharsRef[] synset,
int size) |
private int |
SynonymMap.Builder.countWords(CharsRef chars) |
private boolean |
SynonymMap.Builder.hasHoles(CharsRef chars)
only used for asserting!
|
Modifier and Type | Field and Description |
---|---|
private CharsRef |
CharsRefBuilder.ref |
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<CharsRef> |
CharsRef.utf16SortedAsUTF8SortOrder
Deprecated.
This comparator is only a transition mechanism
|
Modifier and Type | Method and Description |
---|---|
CharsRef |
CharsRef.clone()
Returns a shallow clone of this instance (the underlying characters are
not copied and will be shared by both the returned object and this
object.
|
static CharsRef |
CharsRef.deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars from
other |
CharsRef |
CharsRefBuilder.get()
Return a
CharsRef that points to the internal content of this
builder. |
CharsRef |
CharsRefBuilder.toCharsRef()
Build a new
CharsRef that has the same content as this builder. |
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<CharsRef> |
CharsRef.getUTF16SortedAsUTF8Comparator()
Deprecated.
This comparator is only a transition mechanism
|
Modifier and Type | Method and Description |
---|---|
boolean |
CharsRef.charsEquals(CharsRef other) |
int |
CharsRef.UTF16SortedAsUTF8Comparator.compare(CharsRef a,
CharsRef b)
Deprecated.
|
int |
CharsRef.compareTo(CharsRef other)
Signed int order comparison
|
void |
CharsRefBuilder.copyChars(CharsRef other)
Copies the given
CharsRef referenced content into this instance. |
static CharsRef |
CharsRef.deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars from
other |
Modifier and Type | Field and Description |
---|---|
private CharsRef |
DaciukMihovAutomatonBuilder.previous
Previous sequence added to the automaton in
DaciukMihovAutomatonBuilder.add(CharsRef) . |
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<CharsRef> |
DaciukMihovAutomatonBuilder.comparator
A comparator used for enforcing sorted UTF8 order, used in assertions only.
|
Modifier and Type | Method and Description |
---|---|
void |
DaciukMihovAutomatonBuilder.add(CharsRef current)
Add another character sequence to this automaton.
|
private boolean |
DaciukMihovAutomatonBuilder.setPrevious(CharsRef current)
Copy
current into an internal buffer. |
Modifier and Type | Field and Description |
---|---|
private static CharsRef |
CharSequenceOutputs.NO_OUTPUT |
Modifier and Type | Method and Description |
---|---|
CharsRef |
CharSequenceOutputs.add(CharsRef prefix,
CharsRef output) |
CharsRef |
CharSequenceOutputs.common(CharsRef output1,
CharsRef output2) |
CharsRef |
CharSequenceOutputs.getNoOutput() |
CharsRef |
CharSequenceOutputs.read(DataInput in) |
CharsRef |
CharSequenceOutputs.subtract(CharsRef output,
CharsRef inc) |
Modifier and Type | Method and Description |
---|---|
CharsRef |
CharSequenceOutputs.add(CharsRef prefix,
CharsRef output) |
CharsRef |
CharSequenceOutputs.common(CharsRef output1,
CharsRef output2) |
java.lang.String |
CharSequenceOutputs.outputToString(CharsRef output) |
long |
CharSequenceOutputs.ramBytesUsed(CharsRef output) |
CharsRef |
CharSequenceOutputs.subtract(CharsRef output,
CharsRef inc) |
void |
CharSequenceOutputs.write(CharsRef prefix,
DataOutput out) |