One of a field(url) stores 'url' information and I am trying to get it's value from painless script by doc['url.keyword'].value .Sometimes if the value is less then 100 characters it's getting but not for more than 100 characters.
What's the maximum length to get value in painless script variable and how to get field value if it's length exceeds.
As far as Painless script is concerned, there should be no limit. But I on't think this is directly a painless issue actually. Can you let us know know what your index settings/ field_mappings are, that would be helpful. Painless should be pulling over exactly what is in that field.
Can you please return the results of a search for specifically that field with examples of both urls under 100 characters and urls over 100 characters. Without using painless do a search just use that as a return field. That would help to ensure the field is behaving as you believe it is. Let us know the results.
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.