com.amazonaws.services.cloudsearchv2.model
Class AnalysisOptions

java.lang.Object
  extended by com.amazonaws.services.cloudsearchv2.model.AnalysisOptions
All Implemented Interfaces:
Serializable

public class AnalysisOptions
extends Object
implements Serializable

Synonyms, stopwords, and stemming options for an analysis scheme.

See Also:
Serialized Form

Constructor Summary
AnalysisOptions()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAlgorithmicStemming()
          The level of algorithmic stemming to perform: none, minimal, light, or full.
 String getStemmingDictionary()
          A JSON object that contains a collection of string:value pairs that each map a term to its stem.
 String getStopwords()
          A JSON array of terms to ignore during indexing and searching.
 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(String algorithmicStemming)
          The level of algorithmic stemming to perform: none, minimal, light, or full.
 void setStemmingDictionary(String stemmingDictionary)
          A JSON object that contains a collection of string:value pairs that each map a term to its stem.
 void setStopwords(String stopwords)
          A JSON array of terms to ignore during indexing and searching.
 void setSynonyms(String synonyms)
          A JSON object that defines synonym groups and aliases.
 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(String algorithmicStemming)
          The level of algorithmic stemming to perform: none, minimal, light, or full.
 AnalysisOptions withStemmingDictionary(String stemmingDictionary)
          A JSON object that contains a collection of string:value pairs that each map a term to its stem.
 AnalysisOptions withStopwords(String stopwords)
          A JSON array of terms to ignore during indexing and searching.
 AnalysisOptions withSynonyms(String synonyms)
          A JSON object that defines synonym groups and aliases.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnalysisOptions

public AnalysisOptions()
Method Detail

getSynonyms

public 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.

Returns:
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.

setSynonyms

public void setSynonyms(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.

Parameters:
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.

withSynonyms

public AnalysisOptions withSynonyms(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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getStopwords

public 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.

Returns:
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.

setStopwords

public void setStopwords(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.

Parameters:
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.

withStopwords

public AnalysisOptions withStopwords(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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getStemmingDictionary

public 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.

Returns:
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.

setStemmingDictionary

public void setStemmingDictionary(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.

Parameters:
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.

withStemmingDictionary

public AnalysisOptions withStemmingDictionary(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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getAlgorithmicStemming

public 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

Constraints:
Allowed Values: none, minimal, light, full

Returns:
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
See Also:
AlgorithmicStemming

setAlgorithmicStemming

public void setAlgorithmicStemming(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

Constraints:
Allowed Values: none, minimal, light, full

Parameters:
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
See Also:
AlgorithmicStemming

withAlgorithmicStemming

public AnalysisOptions withAlgorithmicStemming(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

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: none, minimal, light, full

Parameters:
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
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AlgorithmicStemming

setAlgorithmicStemming

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

Constraints:
Allowed Values: none, minimal, light, full

Parameters:
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
See Also:
AlgorithmicStemming

withAlgorithmicStemming

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

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: none, minimal, light, full

Parameters:
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
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AlgorithmicStemming

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.