QueryFilter document (Data API 19.3)

Document representing a query filter. A query filter wraps any query and allows it to be used as a filter.

Example: (coupond_id contains "disabled" AND (enabled=false OR active=false))
 query : {
    filtered_query: {
        query: { text_query: { fields: ["coupon_id"], search_phrase: "disabled" } },
        filter: {
            query_filter: {
                query: {
                    term_query: { fields: ["enabled","active"], operator: "is", values: [ false ] }
                }
            }
        }
    }
 }
 
Property Type Constraints Description
query Query {BoolQuery, FilteredQuery, MatchAllQuery, NestedQuery, TermQuery, TextQuery} mandatory=true, nullable=false The query, which should be used as a filter.