Package com.day.cq.search.eval
Class FulltextPredicateEvaluator
- java.lang.Object
 - 
- com.day.cq.search.eval.AbstractPredicateEvaluator
 - 
- com.day.cq.search.eval.FulltextPredicateEvaluator
 
 
 
- 
- All Implemented Interfaces:
 PredicateEvaluator
public class FulltextPredicateEvaluator extends AbstractPredicateEvaluator
Searches for terms in the fulltext index.Does not support filtering. Does not support facet extraction.
Name:
fulltextProperties:
- fulltext
 - the fulltext search term(s)
 - relPath
 - the relative path to search in (property or subnode) (optional)
 
- Since:
 - 5.2
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FulltextPredicateEvaluator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanFilter(Predicate predicate, EvaluationContext context)Returns the same as the deprecatedAbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext)method (ie.booleancanXpath(Predicate predicate, EvaluationContext context)Returns the inverted boolean value of the deprecatedAbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext)method (ie.java.lang.StringgetXPathExpression(Predicate p, EvaluationContext context)Default implementation that always returnsnull, ie.- 
Methods inherited from class com.day.cq.search.eval.AbstractPredicateEvaluator
getFacetExtractor, getOrderByComparator, getOrderByProperties, includes, isFiltering 
 - 
 
 - 
 
- 
- 
Field Detail
- 
FULLTEXT
public static final java.lang.String FULLTEXT
- See Also:
 - Constant Field Values
 
 
- 
REL_PATH
public static final java.lang.String REL_PATH
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getXPathExpression
public java.lang.String getXPathExpression(Predicate p, EvaluationContext context)
Description copied from class:AbstractPredicateEvaluatorDefault implementation that always returnsnull, ie. adds nothing to the XPath query. Subclasses can choose whether they want to implement this method or use theAbstractPredicateEvaluator.includes(Predicate, Row, EvaluationContext)method for advanced filtering (or both).- Specified by:
 getXPathExpressionin interfacePredicateEvaluator- Overrides:
 getXPathExpressionin classAbstractPredicateEvaluator- Parameters:
 p- predicate (for this evaluator type) which is evaluatedcontext- helper class which provides access to various elements of the query evaluation- Returns:
 - string containing an XPath predicateEvaluator expression
 
 
- 
canXpath
public boolean canXpath(Predicate predicate, EvaluationContext context)
Description copied from class:AbstractPredicateEvaluatorReturns the inverted boolean value of the deprecatedAbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext)method (ie. if not overridden,true).- Specified by:
 canXpathin interfacePredicateEvaluator- Overrides:
 canXpathin classAbstractPredicateEvaluator- Parameters:
 predicate- predicate (for this evaluator type) which is evaluatedcontext- helper class which provides access to various elements of the query evaluation- Returns:
 trueif this evaluator can express itself via xpath, ie.PredicateEvaluator.getXPathExpression(Predicate, EvaluationContext)
 
- 
canFilter
public boolean canFilter(Predicate predicate, EvaluationContext context)
Description copied from class:AbstractPredicateEvaluatorReturns the same as the deprecatedAbstractPredicateEvaluator.isFiltering(Predicate, EvaluationContext)method (ie. if not overridden,false).- Specified by:
 canFilterin interfacePredicateEvaluator- Overrides:
 canFilterin classAbstractPredicateEvaluator- Parameters:
 predicate- predicate (for this evaluator type) which is evaluatedcontext- helper class which provides access to various elements of the query evaluation- Returns:
 trueif this evaluator can be express itself via filtering, ie.PredicateEvaluator.includes(Predicate, Row, EvaluationContext)
 
 - 
 
 -