Examples of FullTextSearch

  • org.apache.jackrabbit.spi.commons.query.jsr283.qom.FullTextSearch
    Performs a full-text search.

    The full-text search expression is evaluated against the set of full-text indexed properties within the full-text search scope. If {@link #getPropertyName property} is specified, the full-text search scopeis the property of that name on the {@link #getSelectorName selector} nodein the node-tuple; otherwise the full-text search scope is all properties of the {@link #getSelectorName selector} node (or, in some implementations,all properties in the node subtree).

    Which properties (if any) in a repository are full-text indexed is implementation determined.

    It is also implementation determined whether {@link #getFullTextSearchExpression fullTextSearchExpression} isindependently evaluated against each full-text indexed property in the full-text search scope, or collectively evaluated against the set of such properties using some implementation-determined mechanism.

    Similarly, for multi-valued properties, it is implementation determined whether {@link #getFullTextSearchExpression fullTextSearchExpression} isindependently evaluated against each element in the array of values, or collectively evaluated against the array of values using some implementation-determined mechanism.

    At minimum, an implementation must support the following {@link #getFullTextSearchExpression fullTextSearchExpression} grammar:

      fullTextSearchExpression ::= [-]term {whitespace [OR] whitespace [-]term} 

    term ::= word | '"' word {whitespace word} '"'

    word ::= (A string containing no whitespace)

    whitespace ::= (A string of only whitespace)

    A query satisfies a FullTextSearch constraint if the value (or values) of the full-text indexed properties within the full-text search scope satisfy the specified {@link #getFullTextSearchExpression fullTextSearchExpression}, evaluated as follows:

    The query is invalid if:

    If {@link #getPropertyName property} is specified but, for a node-tuple,the selector node does not have a property named {@link #getPropertyName property}, the query is valid but the constraint is not satisfied.

  • @since JCR 2.0
  • org.jboss.dna.graph.query.model.FullTextSearch
    A constraint that evaluates to true only when a full-text search applied to the search scope results in positive findings. If a property name is supplied, then the search is limited to the value(s) of the named property on the node(s) in the search scope.
  • org.modeshape.jcr.query.model.FullTextSearch
    A constraint that evaluates to true only when a full-text search applied to the search scope results in positive findings. If a property name is supplied, then the search is limited to the value(s) of the named property on the node(s) in the search scope.

  • Examples of org.modeshape.jcr.query.model.FullTextSearch

                        FullTextSearchScore score = new FullTextSearchScore(propValue.selectorName());
                        return new Comparison(score, comparison.operator(), comparison.getOperand2());
                    }
                }
            } else if (constraint instanceof FullTextSearch) {
                FullTextSearch search = (FullTextSearch)constraint;
                if (".".equals(search.getPropertyName())) {
                    // JCR-SQL's use of CONTAINS allows a '.' to be used to represent the search is to be
                    // performed on all properties of the node(s). However, JCR-SQL2 and our AQM
                    // expect a '*' to be used instead ...
                    return new FullTextSearch(search.selectorName(), search.fullTextSearchExpression());
                }
            } else if (constraint instanceof And) {
                And and = (And)constraint;
                constraint = new And(rewriteConstraint(and.left()), rewriteConstraint(and.right()));
            } else if (constraint instanceof Or) {
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.