@Role public interface QueryFilter
Query.addFilter(QueryFilter), it will be called by the
QueryExecutorbefore the query is executed. Queries can be filtered during 2 stages:
UniqueDocumentFilterwhich transform statements in order to make them return distinct documents names and which also filters query results in order to return only those names.
|Modifier and Type||Method and Description|
Transforms a query.
Filter a list of query results.
Transform a query statement.
String filterStatement(String statement, String language)
statement- the query statement to transform.
language- the language of the query statement.
List filterResults(List results)
results- the original result list.
default Query filterQuery(Query query)
Note: executes before
query- the query to transform
Copyright © 2004–2021 XWiki. All rights reserved.