title: Elasticsearch escape hyphenated field in groovy script
body: <p>I am attempting to add a field to a document doing something similar to <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html#_scripted_updates" rel="nofollow">https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html#_scripted_updates</a>. However, I appear to be running into issues due to the field being hyphen separated(appears to be treated as a minus sign) as opposed to underscore separated.</p>
  
  <p>Example body below:
  <code>{"script":"ctx._source.path.to.hyphen-separated-field = \"new data\""}</code></p>
  
  <p>I attempted to escape the hyphens with a backslash, but to no luck.</p>