title: Creating custom fields based on analysis output in ealsticsearch
body: <p>I am having document where value is raw string :
  { "content" : "field1=1 , field2=foo"}</p>
  
  <p>My intention is to, query by field1, field2 values. </p>
  
  <p>Closest thing I can think of is to use custom analyser which will create tokens based on comma separator, and then I can search with matching exact values like "field1=1" or "field2=foo" . However, ideally I like to search by range values for field1, pattern matching for field2 etc.</p>
  
  <p>Is there any way to achieve this? I could not find any way to store result of analysis which I can query in this way.</p>