[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-871) Only the last enabled FullTextFilter is in effect if multiple FullTextFilters of the same type, different parameters are enabled

Elmer van Chastelet (JIRA) noreply at atlassian.com
Wed Aug 24 11:42:02 EDT 2011


Only the last enabled FullTextFilter is in effect if multiple FullTextFilters of the same type, different parameters are enabled
--------------------------------------------------------------------------------------------------------------------------------

                 Key: HSEARCH-871
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-871
             Project: Hibernate Search
          Issue Type: Bug
          Components: query
    Affects Versions: 3.4.0.Final
         Environment: -
            Reporter: Elmer van Chastelet
         Attachments: FilterTestAdded.diff

The following test fails, it only seems to apply the last filter. Attached is a patch that adds this test and changes to the domain/filters.
{code:java}
ftQuery = s.createFullTextQuery( query, Driver.class );
ftQuery.enableFullTextFilter( "fieldConstraintFilter")
	.setParameter( "field", "teacher" )
	.setParameter( "value", "andre" );
ftQuery.enableFullTextFilter( "fieldConstraintFilter")
	.setParameter( "field", "teacher" )
	.setParameter( "value", "aaron" );
assertEquals("Should apply both filters resulting in 0 results", 0, ftQuery.getResultSize() );
{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