Package org.ametys.cms.search.query
Class RichTextQuery
- java.lang.Object
 - 
- org.ametys.cms.search.query.AbstractFieldQuery
 - 
- org.ametys.cms.search.query.AbstractTextQuery
 - 
- org.ametys.cms.search.query.RichTextQuery
 
 
 
 
- 
- All Implemented Interfaces:
 Query
public class RichTextQuery extends AbstractTextQuery
Represents aQuerytesting a string field. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator 
 - 
 
- 
Field Summary
- 
Fields inherited from class org.ametys.cms.search.query.AbstractTextQuery
_language, _operator, _value, _valueAlreadyEscaped 
- 
Fields inherited from class org.ametys.cms.search.query.AbstractFieldQuery
_fieldPath 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RichTextQuery(String fieldPath)Build a StringQuery testing the existence of the field.RichTextQuery(String fieldPath, String value)Build a string query.RichTextQuery(String fieldPath, String value, String language)Build a string query.RichTextQuery(String fieldPath, Query.Operator op, String value, String language)Build a string query.RichTextQuery(String fieldPath, Query.Operator op, String value, String language, boolean alreadyEscaped)Build a string query. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Build the solr query string representing the Query object.- 
Methods inherited from class org.ametys.cms.search.query.AbstractTextQuery
checkStringValue, equals, escapeStringValue, getLanguage, getOperator, getValue, hashCode 
- 
Methods inherited from class org.ametys.cms.search.query.AbstractFieldQuery
getFieldPath 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
RichTextQuery
public RichTextQuery(String fieldPath)
Build a StringQuery testing the existence of the field.- Parameters:
 fieldPath- the field path
 
- 
RichTextQuery
public RichTextQuery(String fieldPath, String value)
Build a string query.- Parameters:
 fieldPath- the field's pathvalue- the value.
 
- 
RichTextQuery
public RichTextQuery(String fieldPath, String value, String language)
Build a string query.- Parameters:
 fieldPath- the field's pathvalue- the value.language- the query language (can be null).
 
- 
RichTextQuery
public RichTextQuery(String fieldPath, Query.Operator op, String value, String language)
Build a string query.- Parameters:
 fieldPath- the field's pathop- the operator.value- the value.language- the query language (can be null).
 
- 
RichTextQuery
public RichTextQuery(String fieldPath, Query.Operator op, String value, String language, boolean alreadyEscaped)
Build a string query.- Parameters:
 fieldPath- the field's pathop- the operator.value- the value.language- the query language (can be null).alreadyEscaped- true if the value is already escaped and there is no need to escape again the value duringthe build of the query.
 
 - 
 
- 
Method Detail
- 
build
public String build() throws QuerySyntaxException
Description copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
 buildin interfaceQuery- Overrides:
 buildin classAbstractTextQuery- Returns:
 - the solr query string representing the Query object.
 - Throws:
 QuerySyntaxException- if the query can't be built because of a syntax error.
 
 - 
 
 -