SearchIndexer Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexer
- com.
Implements
public final class SearchIndexer
implements JsonSerializable<SearchIndexer>
Represents an indexer.
Constructor Summary
Constructor | Description |
---|---|
SearchIndexer(String name) |
Creates an instance of Search |
SearchIndexer(String name, String dataSourceName, String targetIndexName) |
Constructor of SearchIndexer. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
String |
getDataSourceName()
Get the data |
String |
getDescription()
Get the description property: The description of the indexer. |
String |
getETag()
Get the e |
Search |
getEncryptionKey()
Get the encryption |
List<Field |
getFieldMappings()
Get the field |
String |
getName()
Get the name property: The name of the indexer. |
List<Field |
getOutputFieldMappings()
Get the output |
Indexing |
getParameters()
Get the parameters property: Parameters for indexer execution. |
Indexing |
getSchedule()
Get the schedule property: The schedule for this indexer. |
String |
getSkillsetName()
Get the skillset |
String |
getTargetIndexName()
Get the target |
Boolean |
isDisabled()
Get the is |
Search |
setDataSourceName(String dataSourceName)
Set the data |
Search |
setDescription(String description)
Set the description property: The description of the indexer. |
Search |
setETag(String eTag)
Set the e |
Search |
setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
Set the encryption |
Search |
setFieldMappings(FieldMapping[] fieldMappings)
Set the field |
Search |
setFieldMappings(List<FieldMapping> fieldMappings)
Set the field |
Search |
setIsDisabled(Boolean isDisabled)
Set the is |
Search |
setOutputFieldMappings(FieldMapping[] outputFieldMappings)
Set the output |
Search |
setOutputFieldMappings(List<FieldMapping> outputFieldMappings)
Set the output |
Search |
setParameters(IndexingParameters parameters)
Set the parameters property: Parameters for indexer execution. |
Search |
setSchedule(IndexingSchedule schedule)
Set the schedule property: The schedule for this indexer. |
Search |
setSkillsetName(String skillsetName)
Set the skillset |
Search |
setTargetIndexName(String targetIndexName)
Set the target |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchIndexer
public SearchIndexer(String name)
Creates an instance of SearchIndexer class.
Parameters:
SearchIndexer
public SearchIndexer(String name, String dataSourceName, String targetIndexName)
Constructor of SearchIndexer.
Parameters:
Method Details
fromJson
public static SearchIndexer fromJson(JsonReader jsonReader)
Reads an instance of SearchIndexer from the JsonReader.
Parameters:
Returns:
Throws:
getDataSourceName
public String getDataSourceName()
Get the dataSourceName property: The name of the datasource from which this indexer reads data.
Returns:
getDescription
public String getDescription()
Get the description property: The description of the indexer.
Returns:
getETag
public String getETag()
Get the eTag property: The ETag of the indexer.
Returns:
getEncryptionKey
public SearchResourceEncryptionKey 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. Once you have encrypted your indexer definition, it will always remain encrypted. The search service 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:
getFieldMappings
public List
Get the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.
Returns:
getName
public String getName()
Get the name property: The name of the indexer.
Returns:
getOutputFieldMappings
public List
Get the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.
Returns:
getParameters
public IndexingParameters getParameters()
Get the parameters property: Parameters for indexer execution.
Returns:
getSchedule
public IndexingSchedule getSchedule()
Get the schedule property: The schedule for this indexer.
Returns:
getSkillsetName
public String getSkillsetName()
Get the skillsetName property: The name of the skillset executing with this indexer.
Returns:
getTargetIndexName
public String getTargetIndexName()
Get the targetIndexName property: The name of the index to which this indexer writes data.
Returns:
isDisabled
public Boolean isDisabled()
Get the isDisabled property: A value indicating whether the indexer is disabled. Default is false.
Returns:
setDataSourceName
public SearchIndexer setDataSourceName(String dataSourceName)
Set the dataSourceName property: The name of the datasource from which this indexer reads data.
Parameters:
Returns:
setDescription
public SearchIndexer setDescription(String description)
Set the description property: The description of the indexer.
Parameters:
Returns:
setETag
public SearchIndexer setETag(String eTag)
Set the eTag property: The ETag of the indexer.
Parameters:
Returns:
setEncryptionKey
public SearchIndexer setEncryptionKey(SearchResourceEncryptionKey encryptionKey)
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. Once you have encrypted your indexer definition, it will always remain encrypted. The search service 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:
Returns:
setFieldMappings
public SearchIndexer setFieldMappings(FieldMapping[] fieldMappings)
Set the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.
Parameters:
Returns:
setFieldMappings
public SearchIndexer setFieldMappings(List
Set the fieldMappings property: Defines mappings between fields in the data source and corresponding target fields in the index.
Parameters:
Returns:
setIsDisabled
public SearchIndexer setIsDisabled(Boolean isDisabled)
Set the isDisabled property: A value indicating whether the indexer is disabled. Default is false.
Parameters:
Returns:
setOutputFieldMappings
public SearchIndexer setOutputFieldMappings(FieldMapping[] outputFieldMappings)
Set the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.
Parameters:
Returns:
setOutputFieldMappings
public SearchIndexer setOutputFieldMappings(List
Set the outputFieldMappings property: Output field mappings are applied after enrichment and immediately before indexing.
Parameters:
Returns:
setParameters
public SearchIndexer setParameters(IndexingParameters parameters)
Set the parameters property: Parameters for indexer execution.
Parameters:
Returns:
setSchedule
public SearchIndexer setSchedule(IndexingSchedule schedule)
Set the schedule property: The schedule for this indexer.
Parameters:
Returns:
setSkillsetName
public SearchIndexer setSkillsetName(String skillsetName)
Set the skillsetName property: The name of the skillset executing with this indexer.
Parameters:
Returns:
setTargetIndexName
public SearchIndexer setTargetIndexName(String targetIndexName)
Set the targetIndexName property: The name of the index to which this indexer writes data.
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java