]
Hardy Ferentschik reassigned HSEARCH-871:
-----------------------------------------
Assignee: Hardy Ferentschik
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
Assignee: Hardy Ferentschik
Fix For: 4.0.0.Beta2
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: