elasticsearch/elasticsearch — Issue #1424: Silently discard a non-existant field if asked for and _source is not stored
Author: dakrone
Created: 2011-10-25 17:59:49+00:00
State: open

If a document is searched for like so:

curl http://localhost:9200/myindex/_search -d '
{"fields": ["foo","bar"],
"query": {"query_string": {"defaultField": "foo",
"query": "foo:*"}}}

If the `"bar"` field does not exist and _source is not stored, ES throws an exception. ES should silently discard fields that don't exist if they are not stored and _source is not stored.