@Override
public boolean visit(FullTextOr or) {
fullTextString.append('(');
for (int i = 0; i < or.list.size(); i++) {
FullTextExpression e = or.list.get(i);
String orTerm = getFullTextQuery(e);
fullTextString.append(orTerm);
if (i > 0 && i < or.list.size()) {
fullTextString.append(" OR ");
}
}
fullTextString.append(')');
fullTextString.append(' ');
return true;
}
@Override
public boolean visit(FullTextAnd and) {
fullTextString.append('(');
for (int i = 0; i < and.list.size(); i++) {
FullTextExpression e = and.list.get(i);
String andTerm = getFullTextQuery(e);
fullTextString.append(andTerm);
if (i > 0 && i < and.list.size()) {
fullTextString.append(" AND ");
}