elasticsearch/elasticsearch — Issue #1541: source not returned when * specified in fields list
Author: mattweber
Created: 2011-12-13 23:34:55+00:00
State: open

The source field is not returned in a query where * is specified and source is explicitly asked for.

Works as expected, returns the name and source

curl -XGET 'http://localhost:9200/testindex/testtype/_search?q=lucene+in+action&pretty=true' -d '{"fields":["name","_source"]}'

Does not work, returns only the stored fields, no source.

curl -XGET 'http://localhost:9200/testindex/testtype/_search?q=lucene+in+action&pretty=true' -d '{"fields":["*","_source"]}'

Happens using both DSL and URI Request fields parameter.