Follows up on https://hibernate.atlassian.net/browse/HSEARCH-4601 , https://hibernate.atlassian.net/browse/HSEARCH-4676 There are some cases where one might be forced to use a “simple boolean predicate” due to the DSL syntax, but where they don’t really need it and end up adding only one clause. In those cases, it would be nice to automatically replace the boolean with its only clause, be it just to simplify debugging of the JSON sent to Elasticsearch. One example is when using a nested predicate and needing the full-featured bool predicate:
|