question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Elasticsearch hook support DSL

See original GitHub issue

Description

Current elasticsearch provider hook does not support query with DSL. Can we implement some methods that support user input json to get query results? BTW, why current ElasticsearchHook's father class is DbApiHook? I thought DbApiHook is for relational database that supports sqlalchemy?

Use case/motivation

I think the elasticsearch provider hook should be like MongoHook that inherit from BaseHook and provide more useful methods works out of the box.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
potiukcommented, Mar 6, 2022

Feel free to add support for that.

0reactions
alexkruccommented, Jul 5, 2022

If this issue is not active, I can try to take a look at this one 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Elasticsearch DSL — Elasticsearch DSL 7.2.0 documentation
Elasticsearch DSL is a high-level library whose aim is to help with writing and running queries against Elasticsearch. It is built on top...
Read more >
Elasticsearch DSL Documentation - Read the Docs
Elasticsearch DSL is a high-level library whose aim is to help with writing and running queries against Elasticsearch.
Read more >
Query DSL | Elasticsearch Guide [8.5] | Elastic
Elasticsearch provides a full Query DSL (Domain Specific Language) based on JSON to define queries. Think of the Query DSL as an AST...
Read more >
Package apache-airflow-providers-elasticsearch
This is a provider package for elasticsearch provider. ... for the minimum Airflow version supported) via pip install apache-airflow-providers-elasticsearch ...
Read more >
elasticsearch-dsl - PyPI
Elasticsearch DSL is a high-level library whose aim is to help with writing and running queries against Elasticsearch. It is built on top...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found