(case_property_name, value, fuzzy=False)
return exact_case_property_text_query(case_property_name, value)
Search for all cases where case property with name `case_property_name`` has text value `value`
Search for all cases where case property with name `case_property_name`` has text value `value`
Search for all cases where case property with name case_property_name has text value value
def case_property_query(case_property_name, value, fuzzy=False):
    """
    Search for all cases where case property with name `case_property_name`` has text value `value`
    """
    if value is None:
        raise TypeError("You cannot pass 'None' as a case property value")
    if value == '':
        return case_property_missing(case_property_name)
    if fuzzy:
        return filters.OR(
            # fuzzy match
            case_property_text_query(case_property_name, value, fuzziness='AUTO'),
            # non-fuzzy match. added to improve the score of exact matches
            case_property_text_query(case_property_name, value),
        )
    return exact_case_property_text_query(case_property_name, value)
def case_property_query ( case_property_name , value , fuzzy = False ) : if value is None : raise TypeError ( "You cannot pass 'None' as a case property value" ) if value == '' : return case_property_missing ( case_property_name ) if fuzzy : return filters . OR ( # fuzzy match case_property_text_query ( case_property_name , value , fuzziness = 'AUTO' ) , # non-fuzzy match. added to improve the score of exact matches case_property_text_query ( case_property_name , value ) , ) return exact_case_property_text_query ( case_property_name , value )