Hi All,
I am a bit new to elastic search and would like your views on below points.
If I have a JSON object with 100 fields and i want elastic search
to index only 30 fields and ignore remaining 70 fields but still store the
original json source as _source Is this possible within elastic search ? and
how ?
If all the request which is made to the elastic search data node is
persisted on a file system then do I need to have a gateway ?
If I have a JSON object with 100 fields and i want Elasticsearch
to index only 30 fields and ignore remaining 70 fields but still store
the original json source as _source Is this possible within elastic
search ? and how ?
Yes it is. Just set the mapping for those fields you don't want to be
indexed to { "index": "no"}
If all the request which is made to the Elasticsearch data node is
persisted on a file system then do I need to have a gateway ?
By default, Elasticsearch uses the "local" gateway, so all data is
stored in the data/ dir (which also doubles as the working dir).
You don't need any other gateway than this, unless you have some
specific purpose.
If I have a JSON object with 100 fields and i want Elasticsearch
to index only 30 fields and ignore remaining 70 fields but still store
the original json source as _source Is this possible within elastic
search ? and how ?
Yes it is. Just set the mapping for those fields you don't want to be
indexed to { "index": "no"}
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.