gnodet opened a new pull request, #31392:
URL: https://github.com/apache/camel/pull/31392

   ## Summary
   
   Fixes four bugs in `camel-elasticsearch-rest-client`:
   
   1. **sniffAfterFailureDelay had no effect** - No `SniffOnFailureListener` 
was registered, so `sniffAfterFailureDelay` was ignored and the sniffer only 
read nodes at `snifferInterval`. Fixed by creating the listener before building 
the `RestClient` and linking the sniffer to it via `setSniffer()`, similar to 
the CAMEL-27617 fix in `camel-elasticsearch`.
   
   2. **clusterName never set** - The URI path parameter was validated but 
never set on the endpoint, causing `getClusterName()` to always return null 
despite being marked `required`.
   
   3. **SEARCH with non-String Map values caused ClassCastException** - The 
`createQueryFromMap` method assumed all Map values were Strings and cast them 
blindly. Now handles `Integer`, `Long`, `Double`, `Boolean`, and falls back to 
`toString()` for other types.
   
   4. **Documentation version mismatch** - Component documentation stated 
Elasticsearch 8.x support, but the client is actually version 9.x.
   
   ## Test plan
   
   - [x] Added test `searchAcceptsMapWithDifferentValueTypes()` to verify Map 
search with Integer, Double, and Boolean values
   - [x] All existing tests pass
   - [x] Build succeeds with generated files updated
   
   ## Related
   
   JIRA: https://issues.apache.org/jira/browse/CAMEL-27951
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   _Claude Code on behalf of Guillaume Nodet_


-- 
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