I have such query with a script:
GET index/_search?size=0
{
"query": {
"bool": {
"filter": {
"script": {
"script": {
"inline": "script_name",
"lang": "native",
"params": {
"param1": "value1",
"param2": "value2"
}
}
}
}
}
}
}
I am rebuilding whole index every day, so I could use query cache, but adding parameter request_cache=true does not make a change?
Is it possible to cache filter any other way?