QueryFilter document (Data API 20.9)

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

Example: (coupon_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 to use as a filter.
OCAPI obsolete versions 13.x and 14.x will be end of life in 2020 and versions 15.x and 16.x in 2021. For dates and more information, see the OCAPI versioning and deprecation policy and this Knowledge Article.
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.