/** * {@inheritDoc} * * @see QueryObjectModelVisitor#visit(FullTextSearch) */ public void visit(FullTextSearch fullText) { append("CONTAINS(").append(fullText.getSelectorName()); if (fullText.getPropertyName() != null) { append('.').append(fullText.getPropertyName()); } sb.append(",'").append(fullText.getFullTextSearchExpression()).append("')"); }
final CharStream input = new ANTLRStringStream(node.getFullTextSearchExpression().toString()); if (node.getPropertyName() != null) fields.add(FieldNames.createFullTextFieldName(node.getPropertyName()));
public void visit(FullTextSearch node) throws VisitException SelectorName selectorName = node.getSelectorName(); if (node.getPropertyName() != null) checkTableAndColumnExistance(selectorName, node.getPropertyName(), this.validateColumnExistence); if (column != null)
/** * Define a constraint clause that the node within the named table have at * least one property that satisfies the full-text search expression. * * @param table * the name of the table; may not be null and must refer to a * valid name or alias of a table appearing in the FROM clause * @param searchExpression * the full-text search expression * @return the constraint builder that was used to create this clause; * never null */ public ConstraintBuilder search(String table, String searchExpression) { return setConstraint(new FullTextSearch(selector(table), null, searchExpression)); }
@Override public void visit(FullTextSearch fullTextSearch) { symbols.add(fullTextSearch.getSelectorName()); }
/** * Define a constraint clause that the node within the named table have a * value for the named property that satisfies the full-text search * expression. * * @param table * the name of the table; may not be null and must refer to a * valid name or alias of a table appearing in the FROM clause * @param propertyName * the name of the property to be searched * @param searchExpression * the full-text search expression * @return the constraint builder that was used to create this clause; * never null */ public ConstraintBuilder search(String table, String propertyName, String searchExpression) { return setConstraint(new FullTextSearch(selector(table), propertyName, searchExpression)); }
res = new FullTextSearch(selName, null , expr);