else if (clause.getQuery() instanceof PhraseQuery) { // add phrase
lclausesInside.add(clause);
}
else if (clause.getQuery() instanceof PwaClosestQuery) { // add filter - date closest
PwaClosestQuery query = (PwaClosestQuery)clause.getQuery();
filters.add(new PwaDateClosestFilter(reader, query.getText()));
scoreType=ScoreType.ONLY_ONE; // only one result, so it does not need to rank
}
else if (clause.getQuery() instanceof RangeQuery) { // add filter - date range
RangeQuery query = (RangeQuery)clause.getQuery();
filters.add(new PwaDateRangeFilter(reader, query.getLowerTerm().text(), query.getUpperTerm().text()));