i have documents with multiline fields in my.field and need to count the number of received filenames. @Fabio-sama suggested me in another thread (which was in the wrong section) something like that:
@Fabio-sama:
is that my_field field always a list of objects? And is filename present in each of them? I'm asking if you have to make any check on the single objects or if you blindly get the size of the list. It is a list of objects OR is an empty field. So it is empty OR the structure i posted above
As suggested there, you have to refresh your Index Pattern to see the mapping of the new field. Also, if it's not automatically recognized as a integer, use a template to set the right mapping.
yeah, i tried to do that. the index-pattern-refresh did not change anything. Also delete the index pattern and create a new index pattern did not change anything.
Ok so, do you confirm me you can now do what you were trying to do when you started this thread (or even the previous one in the Kibana section), that is making the sum of all the items of a specific field?
For this second mapping problem, can you share a sample of a document with a non-empty my_field field and another with a empty one?
Maybe also a snapshot of the Discover section to see the error in mapping.
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.