Filter dateFilter = TermRangeFilter.newStringRange( "delivery", "2001", "2005", true, true );
ftQuery.setFilter( dateFilter );
assertEquals( "Should select only liz", 1, ftQuery.getResultSize() );
ftQuery = fullTextSession.createFullTextQuery( query, Driver.class );
ftQuery.enableFullTextFilter( "bestDriver" );
ftQuery.enableFullTextFilter( "empty" );
assertEquals( "two filters, one is empty, should not match anything", 0, ftQuery.getResultSize() );
ftQuery = fullTextSession.createFullTextQuery( query, Driver.class );
ftQuery.setFilter( dateFilter );