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 query DSL like ElasticSearch #15935

Open
niaiwomattt opened this issue Apr 1, 2020 · 2 comments
Open

support query DSL like ElasticSearch #15935

niaiwomattt opened this issue Apr 1, 2020 · 2 comments
Labels
feature/reviewing This feature request is reviewing by product managers type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@niaiwomattt
Copy link

类似 ElasticSearch 的DSL,性能可以更高,功能更强大

@niaiwomattt niaiwomattt added the type/feature-request Categorizes issue or PR as related to a new feature. label Apr 1, 2020
@zz-jason zz-jason changed the title 提供无损的DSL 查询语法 support query DSL like ElasticSearch Apr 1, 2020
@XuHuaiyu
Copy link
Contributor

XuHuaiyu commented Apr 2, 2020

Thanks for your suggestion.
We have no plans to support ElasticSearch DSL currently.

@zz-jason
Copy link
Member

From Elasticsearch DSL:

Elasticsearch DSL is a high-level library whose aim is to help with writing and running queries against Elasticsearch. It is built on top of the official low-level client (elasticsearch-py).

It provides a more convenient and idiomatic way to write and manipulate queries. It stays close to the Elasticsearch JSON DSL, mirroring its terminology and structure. It exposes the whole range of the DSL from Python either directly using defined classes or a queryset-like expressions.

It also provides an optional wrapper for working with documents as Python objects: defining mappings, retrieving and saving documents, wrapping the document data in user-defined classes.

To use the other Elasticsearch APIs (eg. cluster health) just use the underlying client.

Do you mean to add a similar python lib for TiDB to support similar functions, like:

  • store query result
  • issue another query with the former query result

@niaiwomattt Could you describe more about what you expect to see?

@zz-jason zz-jason added the feature/reviewing This feature request is reviewing by product managers label Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/reviewing This feature request is reviewing by product managers type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants