Push every row change into Elasticsearch or OpenSearch as it happens, so search results match the database instead of trailing a reindex job.
Elasticsearch and OpenSearch are both on the roadmap, so there is no search sink to point you at yet. The SDK is how teams build one in the meantime, and the change stream feeding it is the same one every other sink reads.
name: orders
connectors:
- name: orders-db
type: source/postgres
host: "${POSTGRES_HOST}"
port: "${POSTGRES_PORT}"
database: "${POSTGRES_DATABASE}"
user: "${POSTGRES_USER}"
publication: "${POSTGRES_PUBLICATION}"
slot_name: "${POSTGRES_SLOT_NAME}"
secret_refs:
- { field: password, ref: postgres-password }
- name: elasticsearch-out
type: sink/elasticsearch
# required config: /connectors/elasticsearch
routes:
- from: orders-db
to: [elasticsearch-out]
Not every connector in this pair ships yet. The spec is what it will be · check the roadmap for dates.