use of org.apache.lucene.search.DuplicateFilter in project querydsl by querydsl.
the class LuceneQueryTest method list_with_filter.
@Test
public void list_with_filter() {
Filter filter = new DuplicateFilter("year");
assertEquals(4, query.fetch().size());
assertEquals(3, query.filter(filter).fetch().size());
}
Aggregations