* @return the Lucene query
*/
private static Query getQuery(Filter filter, IndexReader reader,
boolean nonFullTextConstraints, Analyzer analyzer) {
List<Query> qs = new ArrayList<Query>();
FullTextExpression ft = filter.getFullTextConstraint();
if (ft == null) {
// there might be no full-text constraint
// when using the LowCostLuceneIndexProvider
// which is used for testing
} else {