The missing is the value that Elasticsearch will assign to documents that do not have a value for the field that you are aggregating upon (keywordTypeField and longTypeField in your examples).
It works for keywordTypeField because the string "N/A" is a valid value for a field of type keyword. However, "N/A" is not a valid long nor a valid ip). Maybe you can change missing to a value like -1 for long type aggregations, and 192.0.2.0 for ip type aggregations.
FYI, for ip, still get the exception - using tools like "Elasticsearch head" or curl.
However, with Transport API it works. When print out it's json, it's like (nothing special),
"missing" : "0.0.0.0",
But if I use tools with copy & paste the line, get the exception.
If you can shed light on, that will be greater ^^. Regardless, thanks again.
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.