At the beggining of this month I added a template and a new numeric field for an index, so the field doesnt exists in the previous months, when displaying an horizontal bar visualizations (even if I query the last hour or day) i get this error on the shards that the field doesnt exists.
No mapping found for [days] in order to sort on
I have tried to add a filter on the visualization to to force the query to a specific date range, but still trows me the error
Is there something I cant do to get rid of this error in the visualization?
if you add a field, you need to go to "Management" > "Index Patterns" and use the "refresh" button on the rop right to refresh the field list for that index pattern. That way you can make Kibana aware of the new field.
Could you look in the inspector (top menu, if you're in discover) when sending that request (or the shard error dialog, when on newer Kibana versions), and get the request that's actually send to Elasticsearch and paste it here?
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.