title: Renaming elastic search output fields
body: <p>I have a problem with using elastic search at the moment.  When I try to perform a search and only want a subset of the fields returned, I need to specify the fields using a dot-notation if the fields are nested.  Here's a sample of my mapper json document which maps my couchDB document:</p>
  
  <pre><code>{
      "product": {
          "_type": {"store": "yes"},
          "_source": {"compress": true},
          "index_analyzer": "standard",
          "search_analyzer": "standard",
          "dynamic_date_formats": ["date_time_no_millis", "date_optional_time"],
          "properties": {
                "_id": {"type": "string", "store": "yes", "index": "not_analyzed"},
              "key": {"type": "string", "store": "yes"},
              "content": {
                  "type": "object",
                  "path": "just_name",
                  "properties": {
                      "key": {"type": "string", "store": "yes"},
                      "name": {"type": "string", "store": "yes", "index_name": "name"},
                      "description": {"type": "string", "store": "yes", "index_name": "description"},
                      "brand": {
                          "type": "object",
                          "index_name": "brand",
                          "properties": {
                              "abbreviation": {"type": "string", "store": "yes", "index_name": "brand_abbreviation"},
                              "name": {"type": "string", "store": "yes", "index_name": "brand_name"}
                          }
                      }
                                  }
                          }
                   }
            }
  }
  </code></pre>
  
  <p>Referring to _id would just be a simple _id, but say I wanted to refer to name in the content, I would have to refer to it as content.name.  The problem with this is that when the search output is out, the json output contains the field name as: "content.name".  </p>
  
  <p>Is it possible to rename this as "name" and without the "content." prefix?  You can see, I tried to specify index_name, but that seemed useless.</p>