// ((FreeTextQueryCriteria)casQuery.getCriteria().get(0)).addValue(t.text());
} else {
String element = database.getElementID(t.field());
if (!element.equals("") && !t.text().equals("")) {
casQ.addCriterion(new TermQueryCriteria(element, t.text()));
}
}
} else if (luceneQ instanceof PhraseQuery) {
Term[] t = ((PhraseQuery) luceneQ).getTerms();
if (t[0].field().equals("__FREE__")) {
// if(casQuery.getCriteria().isEmpty()) casQuery.addCriterion(new
// FreeTextQueryCriteria());
// for(int i=0;i<t.length;i++)
// ((FreeTextQueryCriteria)casQuery.getCriteria().get(0)).addValue(t[i].text());
} else {
for (int i = 0; i < t.length; i++) {
String element = database.getElementID(t[i].field());
if (!element.equals("") && !t[i].text().equals("")) {
casQ.addCriterion(new TermQueryCriteria(element, t[i].text()));
}
}
}
} else if (luceneQ instanceof RangeQuery) {
Term startT = ((RangeQuery) luceneQ).getLowerTerm();