I am just starting to experiment and learn elasticsearch and need a little help. I am using elasticsearch 2.0 with kibana 4.0. I have some json documents that I loaded into elasticsearch and was experimenting with kibana. By using the python client, I modified the mapping before loading the data and I used the following mapping for string fields:
After indexing my data with this mapping, kibana has stopped showing simple aggregations for terms.
This is the request being fired and even on sense, the buckets are empty:
Request:
So I dug a little deeper and it would seem there is something wrong with the settings that I am specifying while creating the index in Python using the client. I was simply specifying the mappings and no other settings. Why is that affecting the aggregations?
Important
Because nested documents are indexed as separate documents, they can only be accessed within the scope of the nested query, the nested/reverse_nested, or nested inner hits.
For instance, if a string field within a nested document has index_options set to offsets to allow use of the postings highlighter, these offsets will not be available during the main highlighting phase. Instead, highlighting needs to be performed via nested inner hits.
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.