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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Mon Nov 15 05:05:13 EST 2010


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.4.0


{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