Avoid double loading DocValues with ScriptDocValues and Fields API #79106
Labels
:Core/Infra/Scripting
Scripting abstractions, Painless, and Mustache
>enhancement
Team:Core/Infra
Meta label for core/infra team
When implementing the Fields API, we should avoid double loading
DocValues
if a users usesScriptDocValues
(doc['myfield']
) andDocValuesField
(field('myfield')
).This will allow users to incrementally use the scripting Fields API in their scripts, when they add functionality or fix a bug, for example without a surprising penalty.
Refs: #78950
The text was updated successfully, but these errors were encountered: