public class AnalysisOptions
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Synonyms, stopwords, and stemming options for an analysis scheme. Includes tokenization dictionary for Japanese.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
algorithmicStemming
The level of algorithmic stemming to perform:
none ,
minimal , light , or full . |
private java.lang.String |
japaneseTokenizationDictionary
A JSON array that contains a collection of terms, tokens, readings and
part of speech for Japanese Tokenizaiton.
|
private java.lang.String |
stemmingDictionary
A JSON object that contains a collection of string:value pairs that each
map a term to its stem.
|
private java.lang.String |
stopwords
A JSON array of terms to ignore during indexing and searching.
|
private java.lang.String |
synonyms
A JSON object that defines synonym groups and aliases.
|
Constructor and Description |
---|
AnalysisOptions() |
Modifier and Type | Method and Description |
---|---|
AnalysisOptions |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlgorithmicStemming()
The level of algorithmic stemming to perform:
none ,
minimal , light , or full . |
java.lang.String |
getJapaneseTokenizationDictionary()
A JSON array that contains a collection of terms, tokens, readings and
part of speech for Japanese Tokenizaiton.
|
java.lang.String |
getStemmingDictionary()
A JSON object that contains a collection of string:value pairs that each
map a term to its stem.
|
java.lang.String |
getStopwords()
A JSON array of terms to ignore during indexing and searching.
|
java.lang.String |
getSynonyms()
A JSON object that defines synonym groups and aliases.
|
int |
hashCode() |
void |
setAlgorithmicStemming(AlgorithmicStemming algorithmicStemming)
The level of algorithmic stemming to perform:
none ,
minimal , light , or full . |
void |
setAlgorithmicStemming(java.lang.String algorithmicStemming)
The level of algorithmic stemming to perform:
none ,
minimal , light , or full . |
void |
setJapaneseTokenizationDictionary(java.lang.String japaneseTokenizationDictionary)
A JSON array that contains a collection of terms, tokens, readings and
part of speech for Japanese Tokenizaiton.
|
void |
setStemmingDictionary(java.lang.String stemmingDictionary)
A JSON object that contains a collection of string:value pairs that each
map a term to its stem.
|
void |
setStopwords(java.lang.String stopwords)
A JSON array of terms to ignore during indexing and searching.
|
void |
setSynonyms(java.lang.String synonyms)
A JSON object that defines synonym groups and aliases.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AnalysisOptions |
withAlgorithmicStemming(AlgorithmicStemming algorithmicStemming)
The level of algorithmic stemming to perform:
none ,
minimal , light , or full . |
AnalysisOptions |
withAlgorithmicStemming(java.lang.String algorithmicStemming)
The level of algorithmic stemming to perform:
none ,
minimal , light , or full . |
AnalysisOptions |
withJapaneseTokenizationDictionary(java.lang.String japaneseTokenizationDictionary)
A JSON array that contains a collection of terms, tokens, readings and
part of speech for Japanese Tokenizaiton.
|
AnalysisOptions |
withStemmingDictionary(java.lang.String stemmingDictionary)
A JSON object that contains a collection of string:value pairs that each
map a term to its stem.
|
AnalysisOptions |
withStopwords(java.lang.String stopwords)
A JSON array of terms to ignore during indexing and searching.
|
AnalysisOptions |
withSynonyms(java.lang.String synonyms)
A JSON object that defines synonym groups and aliases.
|
private java.lang.String synonyms
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.
private java.lang.String stopwords
A JSON array of terms to ignore during indexing and searching. For
example, ["a", "an", "the", "of"]
. The stopwords dictionary
must explicitly list each word you want to ignore. Wildcards and regular
expressions are not supported.
private java.lang.String stemmingDictionary
A JSON object that contains a collection of string:value pairs that each
map a term to its stem. For example,
{"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The
stemming dictionary is applied in addition to any algorithmic stemming.
This enables you to override the results of the algorithmic stemming to
correct specific cases of overstemming or understemming. The maximum size
of a stemming dictionary is 500 KB.
private java.lang.String japaneseTokenizationDictionary
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
private java.lang.String algorithmicStemming
The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
. The
available levels vary depending on the language. For more information,
see Language Specific Text Processing Settings in the
Amazon CloudSearch Developer Guide
public void setSynonyms(java.lang.String synonyms)
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.
synonyms
- A JSON object that defines synonym groups and aliases. A synonym
group is an array of arrays, where each sub-array is a group of
terms where each term in the group is considered a synonym of
every other term in the group. The aliases value is an object that
contains a collection of string:value pairs where the string
specifies a term and the array of values specifies each of the
aliases for that term. An alias is considered a synonym of the
specified term, but the term is not considered a synonym of the
alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.public java.lang.String getSynonyms()
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.
public AnalysisOptions withSynonyms(java.lang.String synonyms)
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.
synonyms
- A JSON object that defines synonym groups and aliases. A synonym
group is an array of arrays, where each sub-array is a group of
terms where each term in the group is considered a synonym of
every other term in the group. The aliases value is an object that
contains a collection of string:value pairs where the string
specifies a term and the array of values specifies each of the
aliases for that term. An alias is considered a synonym of the
specified term, but the term is not considered a synonym of the
alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide.public void setStopwords(java.lang.String stopwords)
A JSON array of terms to ignore during indexing and searching. For
example, ["a", "an", "the", "of"]
. The stopwords dictionary
must explicitly list each word you want to ignore. Wildcards and regular
expressions are not supported.
stopwords
- A JSON array of terms to ignore during indexing and searching. For
example, ["a", "an", "the", "of"]
. The stopwords
dictionary must explicitly list each word you want to ignore.
Wildcards and regular expressions are not supported.public java.lang.String getStopwords()
A JSON array of terms to ignore during indexing and searching. For
example, ["a", "an", "the", "of"]
. The stopwords dictionary
must explicitly list each word you want to ignore. Wildcards and regular
expressions are not supported.
["a", "an", "the", "of"]
. The stopwords
dictionary must explicitly list each word you want to ignore.
Wildcards and regular expressions are not supported.public AnalysisOptions withStopwords(java.lang.String stopwords)
A JSON array of terms to ignore during indexing and searching. For
example, ["a", "an", "the", "of"]
. The stopwords dictionary
must explicitly list each word you want to ignore. Wildcards and regular
expressions are not supported.
stopwords
- A JSON array of terms to ignore during indexing and searching. For
example, ["a", "an", "the", "of"]
. The stopwords
dictionary must explicitly list each word you want to ignore.
Wildcards and regular expressions are not supported.public void setStemmingDictionary(java.lang.String stemmingDictionary)
A JSON object that contains a collection of string:value pairs that each
map a term to its stem. For example,
{"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The
stemming dictionary is applied in addition to any algorithmic stemming.
This enables you to override the results of the algorithmic stemming to
correct specific cases of overstemming or understemming. The maximum size
of a stemming dictionary is 500 KB.
stemmingDictionary
- A JSON object that contains a collection of string:value pairs
that each map a term to its stem. For example,
{"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The stemming dictionary is applied in addition to any
algorithmic stemming. This enables you to override the results of
the algorithmic stemming to correct specific cases of overstemming
or understemming. The maximum size of a stemming dictionary is 500
KB.public java.lang.String getStemmingDictionary()
A JSON object that contains a collection of string:value pairs that each
map a term to its stem. For example,
{"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The
stemming dictionary is applied in addition to any algorithmic stemming.
This enables you to override the results of the algorithmic stemming to
correct specific cases of overstemming or understemming. The maximum size
of a stemming dictionary is 500 KB.
{"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The stemming dictionary is applied in addition to any
algorithmic stemming. This enables you to override the results of
the algorithmic stemming to correct specific cases of
overstemming or understemming. The maximum size of a stemming
dictionary is 500 KB.public AnalysisOptions withStemmingDictionary(java.lang.String stemmingDictionary)
A JSON object that contains a collection of string:value pairs that each
map a term to its stem. For example,
{"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The
stemming dictionary is applied in addition to any algorithmic stemming.
This enables you to override the results of the algorithmic stemming to
correct specific cases of overstemming or understemming. The maximum size
of a stemming dictionary is 500 KB.
stemmingDictionary
- A JSON object that contains a collection of string:value pairs
that each map a term to its stem. For example,
{"term1": "stem1", "term2": "stem2", "term3": "stem3"}
. The stemming dictionary is applied in addition to any
algorithmic stemming. This enables you to override the results of
the algorithmic stemming to correct specific cases of overstemming
or understemming. The maximum size of a stemming dictionary is 500
KB.public void setJapaneseTokenizationDictionary(java.lang.String japaneseTokenizationDictionary)
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
japaneseTokenizationDictionary
- A JSON array that contains a collection of terms, tokens, readings
and part of speech for Japanese Tokenizaiton. The Japanese
tokenization dictionary enables you to override the default
tokenization for selected terms. This is only valid for Japanese
language fields.public java.lang.String getJapaneseTokenizationDictionary()
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
public AnalysisOptions withJapaneseTokenizationDictionary(java.lang.String japaneseTokenizationDictionary)
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
japaneseTokenizationDictionary
- A JSON array that contains a collection of terms, tokens, readings
and part of speech for Japanese Tokenizaiton. The Japanese
tokenization dictionary enables you to override the default
tokenization for selected terms. This is only valid for Japanese
language fields.public void setAlgorithmicStemming(java.lang.String algorithmicStemming)
The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
. The
available levels vary depending on the language. For more information,
see Language Specific Text Processing Settings in the
Amazon CloudSearch Developer Guide
algorithmicStemming
- The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
.
The available levels vary depending on the language. For more
information, see Language Specific Text Processing Settings in
the Amazon CloudSearch Developer GuideAlgorithmicStemming
public java.lang.String getAlgorithmicStemming()
The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
. The
available levels vary depending on the language. For more information,
see Language Specific Text Processing Settings in the
Amazon CloudSearch Developer Guide
none
,
minimal
, light
, or full
.
The available levels vary depending on the language. For more
information, see Language Specific Text Processing Settings in
the Amazon CloudSearch Developer GuideAlgorithmicStemming
public AnalysisOptions withAlgorithmicStemming(java.lang.String algorithmicStemming)
The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
. The
available levels vary depending on the language. For more information,
see Language Specific Text Processing Settings in the
Amazon CloudSearch Developer Guide
algorithmicStemming
- The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
.
The available levels vary depending on the language. For more
information, see Language Specific Text Processing Settings in
the Amazon CloudSearch Developer GuideAlgorithmicStemming
public void setAlgorithmicStemming(AlgorithmicStemming algorithmicStemming)
The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
. The
available levels vary depending on the language. For more information,
see Language Specific Text Processing Settings in the
Amazon CloudSearch Developer Guide
algorithmicStemming
- The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
.
The available levels vary depending on the language. For more
information, see Language Specific Text Processing Settings in
the Amazon CloudSearch Developer GuideAlgorithmicStemming
public AnalysisOptions withAlgorithmicStemming(AlgorithmicStemming algorithmicStemming)
The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
. The
available levels vary depending on the language. For more information,
see Language Specific Text Processing Settings in the
Amazon CloudSearch Developer Guide
algorithmicStemming
- The level of algorithmic stemming to perform: none
,
minimal
, light
, or full
.
The available levels vary depending on the language. For more
information, see Language Specific Text Processing Settings in
the Amazon CloudSearch Developer GuideAlgorithmicStemming
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AnalysisOptions clone()
clone
in class java.lang.Object