Class SearchIndexer
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexer
Represents an indexer.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexer
(String name) Constructor ofSearchIndexer
.SearchIndexer
(String name, String dataSourceName, String targetIndexName) Constructor ofSearchIndexer
. -
Method Summary
Modifier and TypeMethodDescriptiongetCache()
Get the cache property: Adds caching to an enrichment pipeline to allow for incremental modification steps without having to rebuild the index every time.Get the dataSourceName property: The name of the datasource from which this indexer reads data.Get the description property: The description of the indexer.Get the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.getETag()
Get the eTag property: The ETag of the indexer.Get the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.getName()
Get the name property: The name of the indexer.Get the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.Get the parameters property: Parameters for indexer execution.Get the schedule property: The schedule for this indexer.Get the skillsetName property: The name of the skillset executing with this indexer.Get the targetIndexName property: The name of the index to which this indexer writes data.Get the isDisabled property: A value indicating whether the indexer is disabled.setCache
(SearchIndexerCache cache) Set the cache property: Adds caching to an enrichment pipeline to allow for incremental modification steps without having to rebuild the index every time.setDataSourceName
(String dataSourceName) Set the dataSourceName property: The name of the datasource from which this indexer reads data.setDescription
(String description) Set the description property: The description of the indexer.setEncryptionKey
(SearchResourceEncryptionKey encryptionKey) Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault.Set the eTag property: The ETag of the indexer.setFieldMappings
(FieldMapping... fieldMappings) Set the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.setFieldMappings
(List<FieldMapping> fieldMappings) Set the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.setIsDisabled
(Boolean isDisabled) Set the isDisabled property: A value indicating whether the indexer is disabled.setOutputFieldMappings
(FieldMapping... outputFieldMappings) Set the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.setOutputFieldMappings
(List<FieldMapping> outputFieldMappings) Set the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.setParameters
(IndexingParameters parameters) Set the parameters property: Parameters for indexer execution.setSchedule
(IndexingSchedule schedule) Set the schedule property: The schedule for this indexer.setSkillsetName
(String skillsetName) Set the skillsetName property: The name of the skillset executing with this indexer.setTargetIndexName
(String targetIndexName) Set the targetIndexName property: The name of the index to which this indexer writes data.
-
Constructor Details
-
SearchIndexer
Constructor ofSearchIndexer
.- Parameters:
name
- The name of the indexer.
-
SearchIndexer
Constructor ofSearchIndexer
.- Parameters:
name
- The name of the indexer.dataSourceName
- The name of the datasource from which this indexer reads data.targetIndexName
- The name of the index to which this indexer writes data.
-
-
Method Details
-
getName
Get the name property: The name of the indexer.- Returns:
- the name value.
-
getDescription
Get the description property: The description of the indexer.- Returns:
- the description value.
-
setDescription
Set the description property: The description of the indexer.- Parameters:
description
- the description value to set.- Returns:
- the SearchIndexer object itself.
-
getDataSourceName
Get the dataSourceName property: The name of the datasource from which this indexer reads data.- Returns:
- the dataSourceName value.
-
setDataSourceName
Set the dataSourceName property: The name of the datasource from which this indexer reads data.- Parameters:
dataSourceName
- the dataSourceName value.- Returns:
- the SearchIndexer object itself.
-
getSkillsetName
Get the skillsetName property: The name of the skillset executing with this indexer.- Returns:
- the skillsetName value.
-
setSkillsetName
Set the skillsetName property: The name of the skillset executing with this indexer.- Parameters:
skillsetName
- the skillsetName value to set.- Returns:
- the SearchIndexer object itself.
-
getTargetIndexName
Get the targetIndexName property: The name of the index to which this indexer writes data.- Returns:
- the targetIndexName value.
-
setTargetIndexName
Set the targetIndexName property: The name of the index to which this indexer writes data.- Parameters:
targetIndexName
- the targetIndexName value.- Returns:
- the SearchIndexer object itself.
-
getSchedule
Get the schedule property: The schedule for this indexer.- Returns:
- the schedule value.
-
setSchedule
Set the schedule property: The schedule for this indexer.- Parameters:
schedule
- the schedule value to set.- Returns:
- the SearchIndexer object itself.
-
getParameters
Get the parameters property: Parameters for indexer execution.- Returns:
- the parameters value.
-
setParameters
Set the parameters property: Parameters for indexer execution.- Parameters:
parameters
- the parameters value to set.- Returns:
- the SearchIndexer object itself.
-
getFieldMappings
Get the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.- Returns:
- the fieldMappings value.
-
setFieldMappings
Set the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.- Parameters:
fieldMappings
- the fieldMappings value to set.- Returns:
- the SearchIndexer object itself.
-
setFieldMappings
Set the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.- Parameters:
fieldMappings
- the fieldMappings value to set.- Returns:
- the SearchIndexer object itself.
-
getOutputFieldMappings
Get the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.- Returns:
- the outputFieldMappings value.
-
setOutputFieldMappings
Set the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.- Parameters:
outputFieldMappings
- the outputFieldMappings value to set.- Returns:
- the SearchIndexer object itself.
-
setOutputFieldMappings
Set the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.- Parameters:
outputFieldMappings
- the outputFieldMappings value to set.- Returns:
- the SearchIndexer object itself.
-
isDisabled
Get the isDisabled property: A value indicating whether the indexer is disabled. Default is false.- Returns:
- the isDisabled value.
-
setIsDisabled
Set the isDisabled property: A value indicating whether the indexer is disabled. Default is false.- Parameters:
isDisabled
- the isDisabled value to set.- Returns:
- the SearchIndexer object itself.
-
getETag
Get the eTag property: The ETag of the indexer.- Returns:
- the eTag value.
-
setETag
Set the eTag property: The ETag of the indexer.- Parameters:
eTag
- the eTag value to set.- Returns:
- the SearchIndexer object itself.
-
getEncryptionKey
Get the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your indexer definition (as well as indexer execution status) when you want full assurance that no one, not even Microsoft, can decrypt them in Azure Cognitive Search. Once you have encrypted your indexer definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your indexer definition (and indexer execution status) will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.- Returns:
- the encryptionKey value.
-
setEncryptionKey
Set the encryptionKey property: A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your indexer definition (as well as indexer execution status) when you want full assurance that no one, not even Microsoft, can decrypt them in Azure Cognitive Search. Once you have encrypted your indexer definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your indexer definition (and indexer execution status) will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.- Parameters:
encryptionKey
- the encryptionKey value to set.- Returns:
- the SearchIndexer object itself.
-
getCache
Get the cache property: Adds caching to an enrichment pipeline to allow for incremental modification steps without having to rebuild the index every time.- Returns:
- the cache value.
-
setCache
Set the cache property: Adds caching to an enrichment pipeline to allow for incremental modification steps without having to rebuild the index every time.- Parameters:
cache
- the cache value to set.- Returns:
- the SearchIndexer object itself.
-