We're updating the issue view to help you get more done. 

Add fetch methods to terminal steps of the query DSL

Description

As a result of changes in HSEARCH-3544, 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:

1 2 3 4 searchSession.search( MyEntity.class ).asEntity() .predicate( ... ) .toQuery() .fetch()

into this:

1 2 3 searchSession.search( MyEntity.class ).asEntity() .predicate( ... ) .fetch() // Returns the search result directly!

Which is something we see in some popular DSLs such as jOOQ's.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major