Package | Description |
---|---|
org.apache.lucene.analysis.synonym |
Analysis components for Synonyms.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
static CharsRef |
SynonymMap.Builder.analyze(Analyzer analyzer,
String text,
CharsRef reuse)
Sugar: analyzes the text with the analyzer and
separates by
SynonymMap.WORD_SEPARATOR . |
static CharsRef |
SynonymMap.Builder.join(String[] words,
CharsRef reuse)
Sugar: just joins the provided terms with
SynonymMap.WORD_SEPARATOR . |
Modifier and Type | Method and Description |
---|---|
void |
SynonymMap.Builder.add(CharsRef input,
CharsRef output,
boolean includeOrig)
Add a phrase->phrase synonym mapping.
|
static CharsRef |
SynonymMap.Builder.analyze(Analyzer analyzer,
String text,
CharsRef reuse)
Sugar: analyzes the text with the analyzer and
separates by
SynonymMap.WORD_SEPARATOR . |
static CharsRef |
SynonymMap.Builder.join(String[] words,
CharsRef reuse)
Sugar: just joins the provided terms with
SynonymMap.WORD_SEPARATOR . |
Modifier and Type | Method and Description |
---|---|
CharsRef |
CharsRef.clone() |
static CharsRef |
CharsRef.deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars from
other |
Modifier and Type | Method and Description |
---|---|
static Comparator<CharsRef> |
CharsRef.getUTF16SortedAsUTF8Comparator() |
Modifier and Type | Method and Description |
---|---|
boolean |
CharsRef.charsEquals(CharsRef other) |
int |
CharsRef.compareTo(CharsRef other)
Signed int order comparison
|
void |
CharsRef.copyChars(CharsRef other)
Copies the given
CharsRef referenced content into this instance
starting at offset 0. |
static CharsRef |
CharsRef.deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars from
other |
static void |
UnicodeUtil.UTF8toUTF16(byte[] utf8,
int offset,
int length,
CharsRef chars)
Interprets the given byte array as UTF-8 and converts to UTF-16.
|
static void |
UnicodeUtil.UTF8toUTF16(BytesRef bytesRef,
CharsRef chars)
Utility method for
UnicodeUtil.UTF8toUTF16(byte[], int, int, CharsRef) |