Skip to content

support match_bool_prefix query #1374

@julienbachmann

Description

@julienbachmann

I'm using elasticsearch-dsl-py version 7.2.1 and if I do the following query:

search = Search(using=self.client, index="my index") search.query({ "bool": { "should": [ { "match_bool_prefix": { "all_text": { "query": "my search que", "fuzziness": 1, "operator": "and" } } } ] } }) 

I get the following error:

 UnknownDslObject('DSL class `{}` does not exist in {}.'.format(name, cls._type_name))\nelasticsearch_dsl.exceptions.UnknownDslObject: DSL class `match_bool_prefix` does not exist in query."} 

but match_bool_prefix is a valid query in elastic search 7.2
https://www.elastic.co/guide/en/elasticsearch/reference/7.2/query-dsl-match-bool-prefix-query.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions