Package org.ametys.web.search.query
Class PageQuery
java.lang.Object
org.ametys.web.search.query.PageQuery
- All Implemented Interfaces:
Query
Query testing the id of a page or its ancestor ids (enabling to search the subpages of a given one).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Field Summary
Modifier and TypeFieldDescriptionprotected Query.Operator
The operator.protected String
The id.protected boolean
True to search for a whole hierarchy.Fields inherited from interface org.ametys.cms.search.query.Query
BOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.query.Query
buildAsJson, rewrite, toString
-
Field Details
-
_operator
The operator. -
_pageId
The id. -
_withSubPages
True to search for a whole hierarchy.
-
-
Constructor Details
-
PageQuery
Create a PageQuery which searches on the given page (and optionally its sub-pages).- Parameters:
withSubPages
- true to search for sub-pages too.
-
PageQuery
Create a PageQuery which searches on the given page (and optionally its sub-pages).- Parameters:
pageId
- the page id.withSubPages
- true to search for sub-pages of the given page id too.
-
-
Method Details
-
build
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.
-
hashCode
-
equals
-