davsclaus opened a new issue, #3376:
URL: https://github.com/apache/camel-kamelets/issues/3376

   The catalog has sinks that index into Elasticsearch and OpenSearch, but no 
Kamelet that searches them. Their old sources were removed because of the shape 
of their output. Two actions would add search as a step of a route, such as 
looking up a customer or enriching an event:
   
   - **`elasticsearch-search-action`** (Camel `elasticsearch`, or 
`elasticsearch-rest-client` if that fits better) and 
**`opensearch-search-action`** (Camel `opensearch`).
   - **Input:** the body is the query, as JSON (the Query DSL), against an 
index set by property. A plain-text body is a simple match query, if the 
components allow it in a safe way.
   - **Output:** a fixed, documented JSON shape, such as the list of the 
`_source` documents of the hits, with the total number of hits as a header, and 
`size` as an option. No raw client objects.
   - **Security:** the cluster, index and credentials are properties, and 
message headers cannot change the index or the operation: the components' 
`Camel*` headers are removed first.
   - **Citrus tests:** Elasticsearch and OpenSearch containers (Docker Hub 
images). Index two documents, search for one, check the output shape, and try a 
query with no hits.
   
   Both Kamelets are Preview.
   
   _Claude Code on behalf of Claus Ibsen_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to