Module ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Dict Str Dict Str Dict Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Dict Str NameLoad Return Dict Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Dict Str Dict Str Dict Str Dict Str ListLoad Dict Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str Index Str attr Dict Str Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str Index Str attr Dict Str Dict Str Dict Str NameLoad Return NameLoad decorator_list
N/A Filter N/A object N/A __init__ N/A N/A self request N/A N/A N/A N/A self request request N/A __call__ N/A N/A self _ N/A N/A N/A N/A nipsa_filter N/A N/A self request authenticated_userid N/A N/A nipsa_filter N/A N/A userid N/A None N/A N/A Return an Elasticsearch filter for filtering out NIPSA'd annotations.

    The returned filter is suitable for inserting into an Es query dict.
    For example:

        query = {
            "query": {
                "filtered": {
                    "filter": nipsa_filter(),
                    "query": {...}
                }
            }
        }

    :param userid: The ID of a user whose annotations should not be filtered.
        The returned filtered query won't filter out this user's annotations,
        even if the annotations have the NIPSA flag.
    :type userid: unicode

     N/A should_clauses N/A N/A not N/A term N/A nipsa True N/A N/A userid None N/A N/A N/A N/A should_clauses append N/A term N/A user userid N/A N/A bool N/A should should_clauses N/A query_for_users_annotations N/A N/A userid N/A N/A N/A Return an Elasticsearch query for all the given user's annotations. N/A N/A query N/A filtered N/A filter N/A bool N/A must N/A N/A term N/A user userid N/A nipsad_annotations N/A N/A userid N/A N/A N/A Return an Elasticsearch query for the user's NIPSA'd annotations. N/A query N/A query_for_users_annotations userid N/A N/A N/A N/A N/A N/A N/A N/A query N/A query N/A filtered N/A filter N/A bool N/A must append N/A term N/A nipsa True N/A query N/A not_nipsad_annotations N/A N/A userid N/A N/A N/A Return an Elasticsearch query for the user's non-NIPSA'd annotations. N/A query N/A query_for_users_annotations userid N/A N/A N/A N/A N/A N/A N/A N/A query N/A query N/A filtered N/A filter N/A bool N/A must append N/A not N/A term N/A nipsa True N/A query N/A