Add an hasClause() accessor in BooleanPredicateOptionsCollector/SimpleBooleanPredicateClausesCollector
Description
Activity
Show:
Done
Assignee
Reporter

Components
Sprint
None
Fix versions
Priority
Created June 27, 2022 at 7:05 AM
Updated July 3, 2023 at 11:28 AM
Resolved December 21, 2022 at 1:05 PM
In Hibernate Search 5, it used to be possible to check whether a
BooleanJunction
had clauses withisEmpty()
. This could be useful from time to time, e.g.isEmpty()
is a bit problematic with the new DSL, as it’s not immediately clear whether the method is about clauses or about anyBooleanPredicate
option; but we could introduce ahasClause
method to serve a similar purpose.