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.

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"
        ]
    }
}

📘

For more Partitions endpoint references (Fetch, Delete), see our Partition API documentation.