Fabric creates a separate index in the Search provider (Elasticsearch or OpenSearch) on each LU table that has Search fields.
Search indexes are created after a CDC Schema message or a CDC Schema Update message when a Search field is added on a new LU table.
The following displays mapping of Fabric LU Search fields and Search indexes:
Define Search fields on the ADDRESS LU table of the Customer LU. Define the following table columns as Search fields:
Deploy the Customer LU.
Fabric creates an search index for the ADDRESS LU table. The fields below are set as the Columns of the index.
Sync Customer 123 into Fabric. This customer has 3 ADDRESS records.
The CDC Table Change Info message initiates an update of the search index:
Starting from Fabric V8.5.2, you can customize the settings of the indexes that Fabric creates in the Search provider, such as the number of shards or replicas, using JSON settings files. This lets you deploy a different index configuration to each environment, for example, by mounting the files as ConfigMaps in Kubernetes.
Settings files are saved under the $FABRIC_HOME/config/cdc-tags directory:
You can define a separate settings file for each index.
For example:
$FABRIC_HOME/config/cdc-tags/
<settings file>.json <- root settings
DEV/<settings file>.json <- DEV environment settings
PROD/<settings file>.json <- PROD environment settings
When Fabric sends an index creation or update message, for example, following a CDC_REPUBLISH_SCHEMA command, the settings files are merged into the message as follows:
The precedence order is: environment settings file > root settings file > system defaults.
A missing settings file is ignored. If neither file exists, Fabric uses the system default settings.
Example:
{
"number_of_shards": 3,
"number_of_replicas": 1
}
{
"number_of_replicas": 2,
"refresh_interval": "30s"
}
{
"number_of_shards": 3,
"number_of_replicas": 2,
"refresh_interval": "30s"
}
Fabric creates a separate index in the Search provider (Elasticsearch or OpenSearch) on each LU table that has Search fields.
Search indexes are created after a CDC Schema message or a CDC Schema Update message when a Search field is added on a new LU table.
The following displays mapping of Fabric LU Search fields and Search indexes:
Define Search fields on the ADDRESS LU table of the Customer LU. Define the following table columns as Search fields:
Deploy the Customer LU.
Fabric creates an search index for the ADDRESS LU table. The fields below are set as the Columns of the index.
Sync Customer 123 into Fabric. This customer has 3 ADDRESS records.
The CDC Table Change Info message initiates an update of the search index:
Starting from Fabric V8.5.2, you can customize the settings of the indexes that Fabric creates in the Search provider, such as the number of shards or replicas, using JSON settings files. This lets you deploy a different index configuration to each environment, for example, by mounting the files as ConfigMaps in Kubernetes.
Settings files are saved under the $FABRIC_HOME/config/cdc-tags directory:
You can define a separate settings file for each index.
For example:
$FABRIC_HOME/config/cdc-tags/
<settings file>.json <- root settings
DEV/<settings file>.json <- DEV environment settings
PROD/<settings file>.json <- PROD environment settings
When Fabric sends an index creation or update message, for example, following a CDC_REPUBLISH_SCHEMA command, the settings files are merged into the message as follows:
The precedence order is: environment settings file > root settings file > system defaults.
A missing settings file is ignored. If neither file exists, Fabric uses the system default settings.
Example:
{
"number_of_shards": 3,
"number_of_replicas": 1
}
{
"number_of_replicas": 2,
"refresh_interval": "30s"
}
{
"number_of_shards": 3,
"number_of_replicas": 2,
"refresh_interval": "30s"
}