aleph.search.query

aleph.search.query.convert_filters(filters)

AuthzQuery

class aleph.search.query.AuthzQuery

Imports

  • aleph.search.query.Query

Summary

Apply roles-based filtering to the results.

This enforces the authorization (access control) rules on a particular query by comparing the roles a user is in with the ones on the document.

get_filters(self)

Query

class aleph.search.query.Query

Imports

  • object
handle_request(cls, request)
__init__(self, parser)
get_aggregations(self)

Aggregate the query in order to generate faceted results.

get_body(self)
get_filters(self)

Apply query filters from the user interface.

get_highlight(self)
get_post_filters(self)

Apply post-aggregation query filters.

get_query(self)
get_sort(self)

Pick one of a set of named result orderings.

get_text_query(self)
scan(self)

Return an iterator over the whole result set, unpaginated and without aggregations.

search(self)

Execute the query as assmbled.