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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Mon Apr 18 08:03:09 EDT 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: 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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list