Elasticsearch-dsl-py: Support for wildcards in searches?

Created on 11 Mar 2015  路  3Comments  路  Source: elastic/elasticsearch-dsl-py

Is there support for wildcard searches (* and ?) in elasticsearch-dsl-py?

If not (yet, I hope :), what would be the workaround?

Most helpful comment

Hi, there is support - just create the wildcard query:

>>> from elasticsearch_dsl import Search
>>> s = Search().query('wildcard', user='kim*')

All 3 comments

Hi, there is support - just create the wildcard query:

>>> from elasticsearch_dsl import Search
>>> s = Search().query('wildcard', user='kim*')

Cool! Sorry for the useless issue!

But how to wildcard search in filter fields

Was this page helpful?
0 / 5 - 0 ratings