| As a result of changes in HSEARCH-3544 In Progress , we could potentially expose some of the query methods directly on SearchQueryContext and not force users to call toQuery for simple use cases anymore: I.e. allow to shorten this:
searchSession.search( MyEntity.class ).asEntity()
.predicate( ... )
.toQuery()
.fetch()
into this:
searchSession.search( MyEntity.class ).asEntity()
.predicate( ... )
.fetch()
Which is something we see in some popular DSLs such as jOOQ's. |