I need to compute some scores using query string and title of a document, which are not exposed by elasticsearch. I need to split a string to a list as follows: 'applie pie' --> ['apple', 'pie'] . I am using custom script scoring by painless scripts.
you can try sth like "ctx._source.foo = /,/.split(ctx._source.foo)" - but this requires you to explicitely enable regexes, as those are not considered secure.
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.