]
Emmanuel Bernard updated HSEARCH-634:
-------------------------------------
Fix Version/s: (was: 3.4.0)
3.5
Improve Query DSL to support multi terms search
-----------------------------------------------
Key: HSEARCH-634
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-634
Project: Hibernate Search
Issue Type: Improvement
Components: query
Affects Versions: 3.3.0.CR1
Reporter: Emmanuel Bernard
Fix For: 3.5
{code}final Query luceneQuery =
builder
.bool()
.should( builder
.keyword()
.onField( "title" ).boostedTo( 4f )
.andField( "description" )
.matching( "plants" )
.createQuery() )
.should( builder
.keyword()
.onField( "title" ).boostedTo( 4f )
.andField( "description" )
.matching( "hands" )
.createQuery() )
.createQuery();{code}
is too verbose can could be done as
{code}final Query luceneQuery = builder
.keyword()
.onField( "title" ).boostedTo( 4f )
.andField( "description" )
.matching( "plants", "hands" )
.createQuery();{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: