Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support match_bool_prefix query #1374

Closed
julienbachmann opened this issue Jun 16, 2020 · 0 comments · Fixed by #1392
Closed

support match_bool_prefix query #1374

julienbachmann opened this issue Jun 16, 2020 · 0 comments · Fixed by #1392
Labels
good first issue Good for new contributors

Comments

@julienbachmann
Copy link

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

@sethmlarson sethmlarson added the good first issue Good for new contributors label Jun 16, 2020
safwanrahman added a commit to safwanrahman/elasticsearch-dsl-py that referenced this issue Jul 17, 2020
This fixes elastic#1374 by adding support of match_bool_prefix Query
sethmlarson pushed a commit that referenced this issue Aug 4, 2020
sethmlarson pushed a commit to sethmlarson/elasticsearch-dsl-py that referenced this issue Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for new contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants