title: elasticsearch scripted fields alongside _source
body: <p>Following <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-script-fields.html" rel="nofollow noreferrer">the official documentation</a> about script fields i build a query something like this</p>
  
  <pre><code>GET /abc/dfg/_search
  {
    "query": {
      "bool": {
        "must": [
          {
            "bool": {
              "should": [
                {
                  "range": {
                    "object.property": {
                      "gte": 6.05,
                      "lte": 18.15,
                      "include_lower": false,
                      "include_upper": false
                    }
                  }
                }
              ]
            }
          }
        ],
        "filter": [
          {
            "bool": {
              "must": [
                {
                  "geo_distance": {
                    "distance": "25mi",
                    "object.geo_point_property": {
                      "lat": 40.753333,
                      "lon": -73.976667
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    },
    "script_fields": {
      "distance": {
        "script": {
          "inline": "doc['object.geo_point_property'].planeDistanceWithDefault(params.lat,params.lon, 0)",
          "params": {
            "lat": 40.753333,
            "lon": -73.976667
          },
          "lang": "painless"
        }
      }
    }
  } 
  </code></pre>
  
  <p>i get the distance scripted field on the hits but lost all _source fields from documents.</p>
  
  <pre><code>"hits": [
    {
      "_index": "abc",
      "_type": "dfg",
      "_id": "123456789",
      "_score": 5.431662,
      "fields": {
        "distance": [
          452.7564081099714
        ]
      }
    },
  ]
  </code></pre>
  
  <p>There is any way i can get scripted fields alongside _source fields of the document?</p>
  
  <p>i look for something like:</p>
  
  <pre><code>"hits": [
    {
      "_index": "abc",
      "_type": "dfg",
      "_id": "123456789",
      "_score": 5.431662,
      "fields": {
        "distance": [
          452.7564081099714
        ]
        "object": {
          "property": 123,
          "geo_point_property": xyz
        }
      }
    },
  ]
  </code></pre>
  
  <p>PD: im using elastic 5.1</p>