Closed eriky closed 10 years ago
Great, thanks for this! I will review and get it merged in soon.
+100 !
+1
Thanks, I pushed this to master in 406a3e4c with a few small modifications. Thanks for the PR!
Actually I didn't realize that partial fields had been deprecated in elasticsearch 1.0, so this is now support for partial fields. See b7c68b5469 and http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-source-filtering.html
fields can be used to use wildcards to control what part of the _source will be loaded based on include and exclude patterns. This function was missing, while the "fields" function was already implemented. Note that I have not created a unit test for this as I am a bit of a javascript noob still and didn't really understand the current unit tests.