state.keyword is the field name you want to compute the terms aggregation on
If you are not defining any mapping in elasticsearch, then elasticsearch tries to automatically guess the mapping for you. If you sent a text within a state field, then elasticsearch created 2 fields behind the scene state and state.keyword. The former is more for full text search, the later more for computing aggregations, do sorting...
what does that multi-bucket value source based aggregation mean ,i don't understand terms : that's a terms aggregation,bucket.And in some cases we done use state.keyword why its is .Please explain.I just now started to learn elasticsearch
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
What does 'terms' and 'keyword' mean used in aggregation script for example see below example.And then don't understand the concept given in the above link given b you
If you are not defining any mapping in elasticsearch, then elasticsearch tries to automatically guess the mapping for you. If you sent a text within a state field, then elasticsearch created 2 fields behind the scene state and state.keyword . The former is more for full text search, the later more for computing aggregations, do sorting...
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.