Skip to content

Avoid double loading DocValues with ScriptDocValues and Fields API #79106

@stu-elastic

Description

@stu-elastic

When implementing the Fields API, we should avoid double loading DocValues if a users uses ScriptDocValues (doc['myfield']) and DocValuesField (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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions