Closed
Description
Hi, great work on this library. I have been using it with lots of success. I am working on an asynchronous project right now, however, and I am wondering if there is an async equivalent of this library.
I am looking into http://aioes.readthedocs.io/ which looks to be an async version of elasticsearch-py, but after using your DSL library and written all my models, I didn’t quite want to go back to the barebones way.
I haven’t read your source, but based on the blocking code:
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
client = Elasticsearch()
s = Search(using=client, index="my-index") \
.filter("term", category="search") \
response = s.execute()
Would it work if I just just plug aioes’ Elasticsearch into it like this:
from aioes import Elasticsearch
from elasticsearch_dsl import Search
client = Elasticsearch()
s = Search(using=client, index="my-index") \
.filter("term", category="search") \
response = await s.execute()
Alternatively, can you suggest how I might go about this OR if you have plans to write an async version of the same library? Thanks!
Metadata
Metadata
Assignees
Labels
No labels