Package org.ametys.web.search.query
Class PageQuery
- java.lang.Object
-
- org.ametys.web.search.query.PageQuery
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
-
Field Summary
Fields Modifier and Type Field Description protected Query.Operator
_operator
The operator.protected String
_pageId
The id.protected boolean
_withSubPages
True to search for a whole hierarchy.
-
Constructor Summary
Constructors Constructor Description PageQuery(boolean withSubPages)
Create a PageQuery which searches on the given page (and optionally its sub-pages).PageQuery(String pageId, boolean withSubPages)
Create a PageQuery which searches on the given page (and optionally its sub-pages).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
Build the solr query string representing the Query object.boolean
equals(Object obj)
int
hashCode()
-
-
-
Field Detail
-
_operator
protected Query.Operator _operator
The operator.
-
_withSubPages
protected boolean _withSubPages
True to search for a whole hierarchy.
-
-
Constructor Detail
-
PageQuery
public PageQuery(boolean withSubPages)
Create a PageQuery which searches on the given page (and optionally its sub-pages).- Parameters:
withSubPages
- true to search for sub-pages too.
-
-
Method Detail
-
build
public String build() throws QuerySyntaxException
Description copied from interface:Query
Build the solr query string representing the Query object.- Specified by:
build
in interfaceQuery
- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
-