public final class SearchIndex extends Object
Constructor and Description |
---|
SearchIndex(String name)
Constructor of
SearchIndex . |
SearchIndex(String name,
List<SearchField> fields)
Constructor of
SearchIndex . |
Modifier and Type | Method and Description |
---|---|
List<LexicalAnalyzer> |
getAnalyzers()
Get the analyzers property: The analyzers for the index.
|
List<CharFilter> |
getCharFilters()
Get the charFilters property: The character filters for the index.
|
CorsOptions |
getCorsOptions()
Get the corsOptions property: Options to control Cross-Origin Resource
Sharing (CORS) for the index.
|
String |
getDefaultScoringProfile()
Get the defaultScoringProfile property: The name of the scoring profile
to use if none is specified in the query.
|
SearchResourceEncryptionKey |
getEncryptionKey()
Get the encryptionKey property: A description of an encryption key that
you create in Azure Key Vault.
|
String |
getETag()
Get the eTag property: The ETag of the index.
|
List<SearchField> |
getFields()
Get the fields property: The fields of the index.
|
String |
getName()
Get the name property: The name of the index.
|
List<LexicalNormalizer> |
getNormalizers()
Get the normalizers property: The normalizers for the index.
|
List<ScoringProfile> |
getScoringProfiles()
Get the scoringProfiles property: The scoring profiles for the index.
|
SimilarityAlgorithm |
getSimilarity()
Get the similarity property: The type of similarity algorithm to be used
when scoring and ranking the documents matching a search query.
|
List<SearchSuggester> |
getSuggesters()
Get the suggesters property: The suggesters for the index.
|
List<TokenFilter> |
getTokenFilters()
Get the tokenFilters property: The token filters for the index.
|
List<LexicalTokenizer> |
getTokenizers()
Get the tokenizers property: The tokenizers for the index.
|
SearchIndex |
setAnalyzers(LexicalAnalyzer... analyzers)
Set the analyzers property: The analyzers for the index.
|
SearchIndex |
setAnalyzers(List<LexicalAnalyzer> analyzers)
Set the analyzers property: The analyzers for the index.
|
SearchIndex |
setCharFilters(CharFilter... charFilters)
Set the charFilters property: The character filters for the index.
|
SearchIndex |
setCharFilters(List<CharFilter> charFilters)
Set the charFilters property: The character filters for the index.
|
SearchIndex |
setCorsOptions(CorsOptions corsOptions)
Set the corsOptions property: Options to control Cross-Origin Resource
Sharing (CORS) for the index.
|
SearchIndex |
setDefaultScoringProfile(String defaultScoringProfile)
Set the defaultScoringProfile property: The name of the scoring profile
to use if none is specified in the query.
|
SearchIndex |
setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryptionKey property: A description of an encryption key that
you create in Azure Key Vault.
|
SearchIndex |
setETag(String eTag)
Set the eTag property: The ETag of the index.
|
SearchIndex |
setFields(List<SearchField> fields)
Set the fields property: The fields of the index.
|
SearchIndex |
setFields(SearchField... fields)
Set the fields property: The fields of the index.
|
SearchIndex |
setNormalizers(LexicalNormalizer... normalizers)
Set the normalizers property: The normalizers for the index.
|
SearchIndex |
setNormalizers(List<LexicalNormalizer> normalizers)
Set the normalizers property: The normalizers for the index.
|
SearchIndex |
setScoringProfiles(List<ScoringProfile> scoringProfiles)
Set the scoringProfiles property: The scoring profiles for the index.
|
SearchIndex |
setScoringProfiles(ScoringProfile... scoringProfiles)
Set the scoringProfiles property: The scoring profiles for the index.
|
SearchIndex |
setSimilarity(SimilarityAlgorithm similarity)
Set the similarity property: The type of similarity algorithm to be used
when scoring and ranking the documents matching a search query.
|
SearchIndex |
setSuggesters(List<SearchSuggester> suggesters)
Set the suggesters property: The suggesters for the index.
|
SearchIndex |
setSuggesters(SearchSuggester... suggesters)
Set the suggesters property: The suggesters for the index.
|
SearchIndex |
setTokenFilters(List<TokenFilter> tokenFilters)
Set the tokenFilters property: The token filters for the index.
|
SearchIndex |
setTokenFilters(TokenFilter... tokenFilters)
Set the tokenFilters property: The token filters for the index.
|
SearchIndex |
setTokenizers(LexicalTokenizer... tokenizers)
Set the tokenizers property: The tokenizers for the index.
|
SearchIndex |
setTokenizers(List<LexicalTokenizer> tokenizers)
Set the tokenizers property: The tokenizers for the index.
|
public SearchIndex(String name)
SearchIndex
.name
- The name of the index.public SearchIndex(String name, List<SearchField> fields)
SearchIndex
.name
- The name of the index.fields
- The fields of the index.public String getName()
public List<SearchField> getFields()
public SearchIndex setFields(SearchField... fields)
fields
- the fields value to set.public SearchIndex setFields(List<SearchField> fields)
fields
- the fields value to set.public List<ScoringProfile> getScoringProfiles()
public SearchIndex setScoringProfiles(ScoringProfile... scoringProfiles)
scoringProfiles
- the scoringProfiles value to set.public SearchIndex setScoringProfiles(List<ScoringProfile> scoringProfiles)
scoringProfiles
- the scoringProfiles value to set.public String getDefaultScoringProfile()
public SearchIndex setDefaultScoringProfile(String defaultScoringProfile)
defaultScoringProfile
- the defaultScoringProfile value to set.public CorsOptions getCorsOptions()
public SearchIndex setCorsOptions(CorsOptions corsOptions)
corsOptions
- the corsOptions value to set.public List<SearchSuggester> getSuggesters()
public SearchIndex setSuggesters(SearchSuggester... suggesters)
suggesters
- the suggesters value to set.public SearchIndex setSuggesters(List<SearchSuggester> suggesters)
suggesters
- the suggesters value to set.public List<LexicalAnalyzer> getAnalyzers()
public SearchIndex setAnalyzers(LexicalAnalyzer... analyzers)
analyzers
- the analyzers value to set.public SearchIndex setAnalyzers(List<LexicalAnalyzer> analyzers)
analyzers
- the analyzers value to set.public List<LexicalTokenizer> getTokenizers()
public SearchIndex setTokenizers(LexicalTokenizer... tokenizers)
tokenizers
- the tokenizers value to set.public SearchIndex setTokenizers(List<LexicalTokenizer> tokenizers)
tokenizers
- the tokenizers value to set.public List<TokenFilter> getTokenFilters()
public SearchIndex setTokenFilters(TokenFilter... tokenFilters)
tokenFilters
- the tokenFilters value to set.public SearchIndex setTokenFilters(List<TokenFilter> tokenFilters)
tokenFilters
- the tokenFilters value to set.public List<CharFilter> getCharFilters()
public SearchIndex setCharFilters(CharFilter... charFilters)
charFilters
- the charFilters value to set.public SearchIndex setCharFilters(List<CharFilter> charFilters)
charFilters
- the charFilters value to set.public List<LexicalNormalizer> getNormalizers()
public SearchIndex setNormalizers(LexicalNormalizer... normalizers)
normalizers
- the normalizers value to set.public SearchIndex setNormalizers(List<LexicalNormalizer> normalizers)
normalizers
- the normalizers value to set.public SearchResourceEncryptionKey getEncryptionKey()
public SearchIndex setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
encryptionKey
- the encryptionKey value to set.public SimilarityAlgorithm getSimilarity()
public SearchIndex setSimilarity(SimilarityAlgorithm similarity)
similarity
- the similarity value to set.public String getETag()
public SearchIndex setETag(String eTag)
eTag
- the eTag value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.