ColdFusion-ElasticSearch-Client icon indicating copy to clipboard operation
ColdFusion-ElasticSearch-Client copied to clipboard

Special characters are not escaped by search queries

Open robnikkel opened this issue 11 years ago • 0 comments

The following characters are illegal in the "query" attribute for some query types (MultiMatch, Match, etc):

  • - && || ! ( ) { } [ ] ^ " ~ * ? : \ /

Documentation on this found here (under reserved characters):

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html

These really should probably be escaped by this library by replacing all of these chars with a preceding slash.

robnikkel avatar Sep 04 '14 15:09 robnikkel