I am using Elasticsearch on my Magento store and I found a problem when searching for product, but only for some search strings
Here is the error log:
{"0":"{"error":{"root_cause":[{"type":"script_exception","reason":"compile error","script_stack":,"script":"def s =
def id = Long.toString(doc['id'].value); return s[id];","lang":"painless","caused_by":{"type":"illegal_argument_exception","reason":"Scripts may be no longer than 16384 characters. The passed in script is 29931 characters. Consider using a plugin if a script longer than this length is a requirement."}}}}],"caused_by":
Any Idea how to solve this?
I am using Elasticsearch 6.5.1 on Centos7