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

Sanne Grinovero (JIRA) noreply at atlassian.com
Wed Aug 24 11:51:02 EDT 2011


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

Sanne Grinovero updated HSEARCH-871:
------------------------------------

    Suitable for new contributors: [Yes, likely]
                    Fix Version/s: 4.0.0.Alpha2

> 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
>             Fix For: 4.0.0.Alpha2
>
>         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