Does accessing fields that are not indexed in script_score imposes extra time penalty? In other words, should I index all the fields that my script access, even if they are not queried?
Sample part of my schema:
{
...
"likes": {"type": "integer, "indexed": false}
}
A sample script:
return Math.log(doc['likes'].value)
Also I want to know if the time spent in accessing document fields adds up to fetch time or they are part of the query time (which are reported by index/_stats api).
Thanks.