One surprising thing is that even if I put something that makes no
sense in "script" (ln(doc['ideas']) for example) elasticsearch doesn't
complain at all...
Is that normal?
I also couldn't find much documentation/examples about how to use the
scripting, do you know some other resources?
I suspect that sort order is not applied correctly. Otherwise, it would
have complained about absence of "type" parameter and invalid argument for
len. Try this:
One surprising thing is that even if I put something that makes no
sense in "script" (ln(doc['ideas']) for example) elasticsearch doesn't
complain at all...
Is that normal?
I also couldn't find much documentation/examples about how to use the
scripting, do you know some other resources?
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.