Partition For Single Source
A Data Partition is what allows you to configure what Data Source you want Clinia's search engine to index and retrieve when a query is sent.
![](https://files.readme.io/1739739-image.png)
Note: You can have multiple Partitions targetting the same Data Source with different configurations in regards of targeted collections
Configuring a partition
To configure a partition, you minimally need to define which Data Source and profile collection it will index:
{
"key": "<partitionKey>",
"modules": {
"search": "STANDARD"
},
"source": {
"type": "DATA_SOURCE",
"key": "<dataSourceKey>",
"collections": [
"<profileKey>"
]
}
}
Given the Data Source created in the Create a data source step, here is an example of a partition targeting a collection with both provider
and office
profiles:
{
"key": "default-partition",
"modules": {
"search": "STANDARD"
},
"source": {
"type": "DATA_SOURCE",
"key": "my-data-source",
"collections": [
"provider",
"office"
]
}
}
🗂️
Create a Data Partition
Open Recipe
For more Partitions endpoint references (Fetch, Delete), see our Partition API documentation.
Updated about 1 month ago