Hi,
I know this has been asked a bunch and I see the answer regarding fetching
only some fields from a query.
However, my documents have thousands of dynamic fields. I cannot define
them in a mapping with "stored: True".
The documents are megabytes in size. I do not want elastic search returning
a 45MB _source result for each
and then pluck fields from there.
Is it possible to query and retrieve only a few fields from results? I do
not want _source....too big....
You could also use the 'fields' parameter in the URL:
localhost:9200/index-name/type-name/id?pretty&fields=id,name
alex
On Wednesday, December 4, 2013 10:58:56 AM UTC-5, project2501 wrote:
Hi,
I know this has been asked a bunch and I see the answer regarding
fetching only some fields from a query.
However, my documents have thousands of dynamic fields. I cannot define
them in a mapping with "stored: True".
The documents are megabytes in size. I do not want Elasticsearch
returning a 45MB _source result for each
and then pluck fields from there.
Is it possible to query and retrieve only a few fields from results? I do
not want _source....too big....
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.