Loading
dynamic-field-source
This field has the following two properties:
Property | Required | Default | Description |
---|---|---|---|
source | Yes | Source for generating Elasticsearch's value. | |
failure-strategy | No | USE_DIGEST | What to do if Aerospike can’t generate the value using the specified source. While not all sources are compatible with this configuration parameter, you can still generate the value using those sources. |
Source values​
The source field accepts the following values:
Value | Description | Can configure failure-strategy |
---|---|---|
none | The destination system will auto-generate the value or use null. | No |
system-default | The connector sets a different default source. In this case, it is set to source . | No |
namespace | Use the record’s namespace as Elasticsearch's value. | No |
set | Use the record’s set name as Elasticsearch's value. | Yes |
digest | Use the record’s digest as Elasticsearch's value. | No |
user-key | Use the record’s user-key as Elasticsearch's value. | Yes |
bin-value | Use the record’s bin value of the given bin name as Elasticsearch's value. | Yes |
static | Use a static value as Elasticsearch's value. | No |
Failure Strategy values​
While not all sources are compatible with this configuration parameter, you can still generate the value using those sources.
The failure-strategy field accepts the following values:
Value | Description | Details |
---|---|---|
USE_DIGEST | Use the record’s digest as Elasticsearch's value. | This value is always available. |
FAIL | Send the temporary error to XDR so that it will retry the record. | |
IGNORE | Send the permanent error to XDR so that it will not retry the record. | In this situation, the record is never shipped to the destination system. |
Examples​
You can use any of the failure-strategy values wherever applicable. The following examples show usage of all failure-strategy values at different places.
Source: none​
...
:
source: none
...
Source: system-default​
...
:
source: system-default
...
Source: namespace​
...
:
source: namespace
...
Source: set​
...
:
source: set
failure-strategy: USE_DIGEST
...
Source: digest​
...
:
source: digest
...
Source: user-key​
...
:
source: user-key
failure-strategy: FAIL
...
Source: bin-value​
...
:
source: bin-value
bin-name: color
failure-strategy: IGNORE
...
Source: static​
...
:
source: static
value: dummy_doc_id
...