[hibernate-issues] [Hibernate-JIRA] Updated: (HSEARCH-634) Improve Query DSL to support multi terms search

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Dec 23 09:40:24 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard updated HSEARCH-634:
-------------------------------------

    Fix Version/s:     (was: 4.1)

> 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
>
> {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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list