Open Andrew-Chen-Wang opened 4 years ago
I do not know how it is possible. Seems like async connection is new in elasticsearch-py. need to wait untill elasticsearch-dsl supports it.
How is the client usually set for Elasticsearch? Is it even set in this repository? It should just be the same way for async.
@Andrew-Chen-Wang You can set the client while search I think by passing the client manually to elasticsearch-dsl
Ah I see. So for the Django settings, like this: ELASTICSEARCH_DSL = {"default": {"hosts": "localhost:9200"}}
is only meant for passing the args to the Elasticsearch client?
BTW: There is no native async support in Elasticsearch-DSL but it's on my priority list.
@Andrew-Chen-Wang Seems like it is not supported by elasticsearch-dsl still! I would suggest you to wait untill it get upstream support.
BTW, Thanks @sethmlarson for keeping eye on this project! 😃😁
I see, thank you!
@belegnar Seems to just be the low level client. I think this package uses DSL version which doesn't seem to support async yet.
Hi! Thanks for keeping this package alive!
I'm pushing for a lot of async features for Django, and I happened to need web sockets for autocomplete. The Elasticsearch-py documentation specifies that https://elasticsearch-py.readthedocs.io/en/master/async.html#elasticsearch.AsyncElasticsearch we'd need some kind of Connection class but I can't seem to find that for this.
How would I implement this? Thanks!