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

ANTLR grammar for the OpenSearch query language #12174

Open
svanschalkwyk opened this issue Feb 5, 2024 · 4 comments
Open

ANTLR grammar for the OpenSearch query language #12174

svanschalkwyk opened this issue Feb 5, 2024 · 4 comments
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc

Comments

@svanschalkwyk
Copy link

Is your feature request related to a problem? Please describe

I'd like to use a grammar to validate queries.

Describe the solution you'd like

Access to the DSL grammar. I can only find SQL and Painless grammars.

Related component

Search

Describe alternatives you've considered

No response

Additional context

No response

@svanschalkwyk svanschalkwyk added enhancement Enhancement or improvement to existing feature or request untriaged labels Feb 5, 2024
@github-actions github-actions bot added the Search Search query, autocomplete ...etc label Feb 5, 2024
@dblock
Copy link
Member

dblock commented Feb 5, 2024

AFAIK no, where did you find the other grammars (links?)? Is this something that belongs in https://github.com/opensearch-project/opensearch-api-specification?

@svanschalkwyk
Copy link
Author

@dblock just search for *.g4 files.

@dblock
Copy link
Member

dblock commented Feb 6, 2024

@peternied peternied changed the title Is there an ANTLR grammar for the DSL? ANTLR grammar for the OpenSearch query language Feb 7, 2024
@peternied
Copy link
Member

[Triage - attendees 1 2 3]
@svanschalkwyk Thanks for filing, we'd welcome a pull request to add this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc
Projects
Status: Later (6 months plus)
Development

No branches or pull requests

3 participants