django-elasticsearch-dsl-drf icon indicating copy to clipboard operation
django-elasticsearch-dsl-drf copied to clipboard

Support for regex in completion suggesters

Open selimt opened this issue 2 years ago • 1 comments
trafficstars

Elasticsearch completion suggesters support regex queries:

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#regex

Would it be possible to support that?

For now I'd have to modify the existing query dict to replace the "text" key with the "regex" key inside the suggest viewset method.

Thanks.

selimt avatar Jun 21 '23 20:06 selimt

I also opened up an issue here: https://github.com/elastic/elasticsearch-dsl-py/issues/1650

Since without it this can not be easily supported.

selimt avatar Jun 21 '23 23:06 selimt