Hello.
I'm getting error regarding exceeded message field length (over 1 mln characters).
I want to identify them. I found a script in painless language:
GET /your_index/_search
{
"query": {
"bool": {
"must": [
{
"script": {
"script": {
"source": "doc['message.keyword'].value.length() > 1000000",
"lang": "painless"
}
}
}
]
}
}
}
I'm getting
Unhandled Exception illegal_argument_exception
unexpected token ['{'] was expecting one of [{<EOF>, ';'}].
Stack:
[
"GET /your_index/_search\n{\n \"query\": {\n \"bool\" ...",
" ^---- HERE"
]
What's wrong here. Any ideas ?