there is a field named ip, which mapped to ip type, now i want to aggs as /24 subnets, i use script "doc['ip'].value & 0xffffff00" to get long value of ip, how to next to convert it to ip string???
I'm not sure in that case, but I don't think there's anything built-in that will do that for you (at least not one that's accessible). You might find something and script it out, as there are converters back and forth on that count.
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.