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

Extra characters to be escaped #794

Closed
topikito opened this issue Mar 4, 2015 · 0 comments
Closed

Extra characters to be escaped #794

topikito opened this issue Mar 4, 2015 · 0 comments

Comments

@topikito
Copy link
Contributor

topikito commented Mar 4, 2015

As of ElasticSearchs documentation (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_reserved_characters) the characters '<' and '>' needs to be escaped. However, Lucene does not require this. I've checked out the Util class code and its not escaping those characters.

Yesterday, I had an issue on production server due to a '<' symbol in a query that was not escaped. How are we dealing with this scenario?

I've created my own escape function that adds these two symbols for now. I've also created a PR.

@ruflin ruflin closed this as completed in ab75e5b Mar 5, 2015
ruflin added a commit that referenced this issue Mar 5, 2015
[RFR] Escape new symbols in Util::escapeTerm (fixes #794)
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