jeap-opensearch-index-writer-service
Service template for event-driven indexing of search items into OpenSearch. A service instance is created by depending on this template, then adding index type and message configuration specific to the owning domain.
Key Features
- Declarative message configuration: Kafka message types and topics mapped to index operations via
/opensearch/messages.json - Multiple operations per message: Any number of UPSERT or DELETE operations per event
- Reference provider pattern: Extracts one or more business object references from each event; all references are processed independently
- Conditional execution: Operations guarded by
IndexingConditionbeans or jEAP feature flags - Schema validation: SearchItem fields validated against the
IndexTypemapping before every write - Managed metadata:
search_item.upserted_at,major_version, andminor_versionenriched automatically on every write - Service-owned index templates: Index templates created and kept up to date by the service at startup
- Error handling: Failed operations forwarded to the jEAP error handling service