| Some examples of what user code could be, discussed during the F2F meeting. Note that must() could either return a "must context" or accept a lambda as a parameter, or we could have two version of the method. We couldn't agree on that yet, we should discuss it further.
FullTextSession session = ...;
FullTextQuery<Object[]> query = session.query( Animal.class) .withProjection( "field1" ) .bool() .must().keyword().onField( "stuff" ).matching( "stuff" ).end()
.must( (q) -> q.keyword(). ... .build() )
.end()
.build();
query.getResultSize();
SearchFactory searchFactory = ... ;
HSQuery<Object[]> query = searchFactory.query( Animal.class) .withProjection( "field1" ) .bool() .must().keyword().onField( "stuff" ).matching( "stuff" ).end()
.must( (q) -> q.keyword(). ... .build() )
.end()
.build();
|