public class AnalysisScheme extends Object implements Serializable
Configuration information for an analysis scheme. Each analysis scheme
has a unique name and specifies the language of the text to be
processed. The following options can be configured for an analysis
scheme: Synonyms
,
Stopwords
,
StemmingDictionary
, and
AlgorithmicStemming
.
Constructor and Description |
---|
AnalysisScheme() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AnalysisOptions |
getAnalysisOptions()
Synonyms, stopwords, and stemming options for an analysis scheme.
|
String |
getAnalysisSchemeLanguage()
An IETF
RFC 4646 language code or
mul for multiple languages. |
String |
getAnalysisSchemeName()
A string that represents the name of an index field.
|
int |
hashCode() |
void |
setAnalysisOptions(AnalysisOptions analysisOptions)
Synonyms, stopwords, and stemming options for an analysis scheme.
|
void |
setAnalysisSchemeLanguage(AnalysisSchemeLanguage analysisSchemeLanguage)
An IETF
RFC 4646 language code or
mul for multiple languages. |
void |
setAnalysisSchemeLanguage(String analysisSchemeLanguage)
An IETF
RFC 4646 language code or
mul for multiple languages. |
void |
setAnalysisSchemeName(String analysisSchemeName)
A string that represents the name of an index field.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AnalysisScheme |
withAnalysisOptions(AnalysisOptions analysisOptions)
Synonyms, stopwords, and stemming options for an analysis scheme.
|
AnalysisScheme |
withAnalysisSchemeLanguage(AnalysisSchemeLanguage analysisSchemeLanguage)
An IETF
RFC 4646 language code or
mul for multiple languages. |
AnalysisScheme |
withAnalysisSchemeLanguage(String analysisSchemeLanguage)
An IETF
RFC 4646 language code or
mul for multiple languages. |
AnalysisScheme |
withAnalysisSchemeName(String analysisSchemeName)
A string that represents the name of an index field.
|
public String getAnalysisSchemeName()
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
_id
.public void setAnalysisSchemeName(String analysisSchemeName)
_id
.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
analysisSchemeName
- A string that represents the name of an index field. Field names begin
with a letter and can contain the following characters: a-z
(lowercase), 0-9, and _ (underscore). The name "score" is reserved and
cannot be used as a field name. To reference a document's ID, you can
use the name _id
.public AnalysisScheme withAnalysisSchemeName(String analysisSchemeName)
_id
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*
analysisSchemeName
- A string that represents the name of an index field. Field names begin
with a letter and can contain the following characters: a-z
(lowercase), 0-9, and _ (underscore). The name "score" is reserved and
cannot be used as a field name. To reference a document's ID, you can
use the name _id
.public String getAnalysisSchemeLanguage()
mul
for multiple languages.
Constraints:
Allowed Values: ar, bg, ca, cs, da, de, el, en, es, eu, fa, fi, fr, ga, gl, he, hi, hu, hy, id, it, ja, ko, lv, mul, nl, no, pt, ro, ru, sv, th, tr, zh-Hans, zh-Hant
mul
for multiple languages.AnalysisSchemeLanguage
public void setAnalysisSchemeLanguage(String analysisSchemeLanguage)
mul
for multiple languages.
Constraints:
Allowed Values: ar, bg, ca, cs, da, de, el, en, es, eu, fa, fi, fr, ga, gl, he, hi, hu, hy, id, it, ja, ko, lv, mul, nl, no, pt, ro, ru, sv, th, tr, zh-Hans, zh-Hant
analysisSchemeLanguage
- An IETF
RFC 4646 language code or mul
for multiple languages.AnalysisSchemeLanguage
public AnalysisScheme withAnalysisSchemeLanguage(String analysisSchemeLanguage)
mul
for multiple languages.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ar, bg, ca, cs, da, de, el, en, es, eu, fa, fi, fr, ga, gl, he, hi, hu, hy, id, it, ja, ko, lv, mul, nl, no, pt, ro, ru, sv, th, tr, zh-Hans, zh-Hant
analysisSchemeLanguage
- An IETF
RFC 4646 language code or mul
for multiple languages.AnalysisSchemeLanguage
public void setAnalysisSchemeLanguage(AnalysisSchemeLanguage analysisSchemeLanguage)
mul
for multiple languages.
Constraints:
Allowed Values: ar, bg, ca, cs, da, de, el, en, es, eu, fa, fi, fr, ga, gl, he, hi, hu, hy, id, it, ja, ko, lv, mul, nl, no, pt, ro, ru, sv, th, tr, zh-Hans, zh-Hant
analysisSchemeLanguage
- An IETF
RFC 4646 language code or mul
for multiple languages.AnalysisSchemeLanguage
public AnalysisScheme withAnalysisSchemeLanguage(AnalysisSchemeLanguage analysisSchemeLanguage)
mul
for multiple languages.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ar, bg, ca, cs, da, de, el, en, es, eu, fa, fi, fr, ga, gl, he, hi, hu, hy, id, it, ja, ko, lv, mul, nl, no, pt, ro, ru, sv, th, tr, zh-Hans, zh-Hant
analysisSchemeLanguage
- An IETF
RFC 4646 language code or mul
for multiple languages.AnalysisSchemeLanguage
public AnalysisOptions getAnalysisOptions()
public void setAnalysisOptions(AnalysisOptions analysisOptions)
analysisOptions
- Synonyms, stopwords, and stemming options for an analysis scheme.public AnalysisScheme withAnalysisOptions(AnalysisOptions analysisOptions)
Returns a reference to this object so that method calls can be chained together.
analysisOptions
- Synonyms, stopwords, and stemming options for an analysis scheme.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.