-
Notifications
You must be signed in to change notification settings - Fork 208
Open
Labels
Description
Is your feature request related to a problem?
I am building a search UI on top of Opensearch and I would want to be able to use DQL. My backend is written in python.
What solution would you like?
I want to be able to put a query like
severity.text: INFO or severity.text: WARN and resource.telemetry.sdk.language: go
which should give me a DSL like
{
"query": {
"bool": {
"should": [
{"match": {"severity.text": "INFO"}},
{"bool": {
"must": [
{"match": {"severity.text": "WARN"}},
{"match": {"resource.telemetry.sdk.language": "go"}}
]
}}
]
}
}
}
What alternatives have you considered?
https://www.npmjs.com/package/@vartoso/kql-to-dsl
This solves the problem, but my backend is in Python. I need it to happen on the backend.