(self, domain, xpath, fuzzy=False)
return self.filter(build_filter_from_xpath(domain, xpath, fuzzy=fuzzy))
Search for cases using an XPath predicate expression.

        Enter an arbitrary XPath predicate in the context of the case. Also supports related case lookups.
        e.g you can do things like:

        - case properties: "first_name = 'dolores' and last_name = 'abernathy'"
        - date ranges: "first_came_online >= '2017-08-12' or died <= '2020-11-15"
        - numeric ranges: "age >= 100 and height < 1.25"
        - related cases: "mother/first_name = 'maeve' or parent/parent/host/age = 13"

        If fuzzy is true, all equality checks will be treated as fuzzy.
Search for cases using an XPath predicate expression.
Search for cases using an XPath predicate expression .
def xpath_query(self, domain, xpath, fuzzy=False):
        """Search for cases using an XPath predicate expression.

        Enter an arbitrary XPath predicate in the context of the case. Also supports related case lookups.
        e.g you can do things like:

        - case properties: "first_name = 'dolores' and last_name = 'abernathy'"
        - date ranges: "first_came_online >= '2017-08-12' or died <= '2020-11-15"
        - numeric ranges: "age >= 100 and height < 1.25"
        - related cases: "mother/first_name = 'maeve' or parent/parent/host/age = 13"

        If fuzzy is true, all equality checks will be treated as fuzzy.
        """
        from corehq.apps.case_search.filter_dsl import build_filter_from_xpath
        return self.filter(build_filter_from_xpath(domain, xpath, fuzzy=fuzzy))
def xpath_query ( self , domain , xpath , fuzzy = False ) : from corehq . apps . case_search . filter_dsl import build_filter_from_xpath return self . filter ( build_filter_from_xpath ( domain , xpath , fuzzy = fuzzy ) )