mattbaird / elastigo

A Go (golang) based Elasticsearch client library.
Apache License 2.0
943 stars 241 forks source link

Add Sanitize for query input sanitization #249

Open dimroc opened 8 years ago

dimroc commented 8 years ago

Useful when passing through search queries from search form that's available to an end user.

Referenced this node implementation: https://github.com/lanetix/node-elasticsearch-sanitize

vrecan commented 8 years ago

Thanks for putting up the PR. I think this is a good idea but this is a pretty complex set of regular expressions. This needs a better set of tests before this could be merged.