Class AzureSearchCommitterConfig
java.lang.Object
com.norconex.committer.core.BaseCommitterConfig
com.norconex.committer.core.batch.BaseBatchCommitterConfig
com.norconex.committer.azurecognitivesearch.AzureSearchCommitterConfig
- All Implemented Interfaces:
Serializable
Azure Search Committer configuration.
- Author:
- Pascal Essiembre
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe Azure API admin key.The Azure API version.The fields which values should always be treated as array.Gets the Azure Search endpoint.The target index name.Gets the proxy settings.The document field name containing the value to be stored in Azure Search document key field.The name of the Azure Search field where content will be stored.The name of Azure Search key field where to store a document unique identifier (sourceKeyField).inthashCode()booleanWhether the list of fields to be always treated as array is represented as regular expression.booleanWhether to disable document reference encoding.booleanWhether to ignore response errors.booleanWhether to ignore validation errors.booleanWhether to use integrated Windows Authentication (if applicable).The Azure API admin key.setApiVersion(String apiVersion) The Azure API version.setArrayFields(String arrayFields) The fields which values should always be treated as array.setArrayFieldsRegex(boolean arrayFieldsRegex) Whether the list of fields to be always treated as array is represented as regular expression.setDisableDocKeyEncoding(boolean disableDocKeyEncoding) Whether to disable document reference encoding.setEndpoint(String endpoint) Gets the Azure Search endpoint.setIgnoreResponseErrors(boolean ignoreResponseErrors) Whether to ignore response errors.setIgnoreValidationErrors(boolean ignoreValidationErrors) Whether to ignore validation errors.setIndexName(String indexName) The target index name.setProxySettings(@NonNull ProxySettings proxySettings) Sets the proxy settings.setSourceKeyField(String sourceKeyField) The document field name containing the value to be stored in Azure Search document key field.setTargetContentField(String targetContentField) The name of the Azure Search field where content will be stored.setTargetKeyField(String targetKeyField) The name of Azure Search key field where to store a document unique identifier (sourceKeyField).setUseWindowsAuth(boolean useWindowsAuth) Whether to use integrated Windows Authentication (if applicable).toString()Methods inherited from class com.norconex.committer.core.batch.BaseBatchCommitterConfig
getQueue, setQueueMethods inherited from class com.norconex.committer.core.BaseCommitterConfig
addRestriction, addRestrictions, clearFieldMappings, clearRestrictions, getFieldMappings, getRestrictions, removeFieldMapping, removeRestriction, removeRestriction, setFieldMapping, setFieldMappings
-
Field Details
-
DEFAULT_API_VERSION
Default Azure Search API version- See Also:
-
DEFAULT_AZURE_KEY_FIELD
Default Azure Search document key field- See Also:
-
DEFAULT_AZURE_CONTENT_FIELD
Default Azure Search content field- See Also:
-
-
Constructor Details
-
AzureSearchCommitterConfig
public AzureSearchCommitterConfig()
-
-
Method Details
-
getProxySettings
Gets the proxy settings.- Returns:
- proxy settings (never
null).
-
setProxySettings
Sets the proxy settings.- Parameters:
proxySettings- proxy settings- Returns:
- this
-
getEndpoint
Gets the Azure Search endpoint. (https://[service name].search.windows.net). -
getApiVersion
The Azure API version. Default isDEFAULT_API_VERSION. -
getApiKey
The Azure API admin key. -
getIndexName
The target index name. -
isDisableDocKeyEncoding
public boolean isDisableDocKeyEncoding()Whether to disable document reference encoding. By default, references are encoded using a URL-safe Base64 encoding. Whentrue, document references will be sent as is if they pass validation. -
isIgnoreValidationErrors
public boolean isIgnoreValidationErrors()Whether to ignore validation errors. By default, an exception is thrown if a document contains a field that Azure Search will reject. Whentruethe validation errors are logged instead and the faulty field or document is not committed. -
isIgnoreResponseErrors
public boolean isIgnoreResponseErrors()Whether to ignore response errors. By default, an exception is thrown if the Azure Search response contains an error. Whentruethe errors are logged instead. -
getArrayFields
The fields which values should always be treated as array. Expects a comma-separated-value list or regular expression when the returned value ofisArrayFieldsRegex()istrue.- See Also:
-
isArrayFieldsRegex
public boolean isArrayFieldsRegex()Whether the list of fields to be always treated as array is represented as regular expression.- See Also:
-
isUseWindowsAuth
public boolean isUseWindowsAuth()Whether to use integrated Windows Authentication (if applicable). -
getSourceKeyField
The document field name containing the value to be stored in Azure Search document key field. Default is not a field (null), but rather the document reference. -
getTargetKeyField
The name of Azure Search key field where to store a document unique identifier (sourceKeyField). Default is "id". -
getTargetContentField
The name of the Azure Search field where content will be stored. Default is "content". Specifying anullvalue will disable storing the content. -
setEndpoint
Gets the Azure Search endpoint. (https://[service name].search.windows.net).- Returns:
this.
-
setApiVersion
The Azure API version. Default isDEFAULT_API_VERSION.- Returns:
this.
-
setApiKey
The Azure API admin key.- Returns:
this.
-
setIndexName
The target index name.- Returns:
this.
-
setDisableDocKeyEncoding
Whether to disable document reference encoding. By default, references are encoded using a URL-safe Base64 encoding. Whentrue, document references will be sent as is if they pass validation.- Returns:
this.
-
setIgnoreValidationErrors
Whether to ignore validation errors. By default, an exception is thrown if a document contains a field that Azure Search will reject. Whentruethe validation errors are logged instead and the faulty field or document is not committed.- Returns:
this.
-
setIgnoreResponseErrors
Whether to ignore response errors. By default, an exception is thrown if the Azure Search response contains an error. Whentruethe errors are logged instead.- Returns:
this.
-
setArrayFields
The fields which values should always be treated as array. Expects a comma-separated-value list or regular expression when the returned value ofisArrayFieldsRegex()istrue.- Returns:
this.- See Also:
-
setArrayFieldsRegex
Whether the list of fields to be always treated as array is represented as regular expression.- Returns:
this.- See Also:
-
setUseWindowsAuth
Whether to use integrated Windows Authentication (if applicable).- Returns:
this.
-
setSourceKeyField
The document field name containing the value to be stored in Azure Search document key field. Default is not a field (null), but rather the document reference.- Returns:
this.
-
setTargetKeyField
The name of Azure Search key field where to store a document unique identifier (sourceKeyField). Default is "id".- Returns:
this.
-
setTargetContentField
The name of the Azure Search field where content will be stored. Default is "content". Specifying anullvalue will disable storing the content.- Returns:
this.
-
equals
- Overrides:
equalsin classBaseBatchCommitterConfig
-
canEqual
- Overrides:
canEqualin classBaseBatchCommitterConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseBatchCommitterConfig
-
toString
- Overrides:
toStringin classBaseBatchCommitterConfig
-