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

Avoid sanitizing the query for query_string searches #19

Open
jpeach opened this issue Oct 28, 2022 · 0 comments
Open

Avoid sanitizing the query for query_string searches #19

jpeach opened this issue Oct 28, 2022 · 0 comments

Comments

@jpeach
Copy link

jpeach commented Oct 28, 2022

When you do a query_string search, the value is marshaled using sanitizeElasticQueryField, but in this case that probably doesn't do what the caller wants. For example, if the value is "service:foo", the ":" should not be escaped because it need to be parsed as a field delimiter. Probably in this case, you want to pass the value through without any modifications.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant