Search and query DSL changesedit

Limiting the length of regex that can be used in a Regexp Query requestedit

Regexp Query with long string made of many operators may run into a stack overflow. To safeguard against this, the maximum length of regex that can be used in a Regexp Query request has been limited to 1000. This default maximum can be changed for a particular index with the index setting index.max_regex_length.