I am trying to create a simple script field to display the key size of the SSL certificate, the key size value differs between 256 to 270 bytes, so I created the below script field.
Welcome to the community @Rammohan !
There are two issues I see in the script you're trying to add:
keyword fields are strings, so a numeric range comparison won't work for those. You'll need to change the mapping to a number.
you'll need to check your index mapping and use a field that is mapped.
I don't know what your current mapping looks like or if you can reindex your data into a new index with updated mappings.
If you can't reindex the data, then try using a runtime field to cast the data to a numeric value.
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.