You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support retrieved_from: :doc_values for direct leaf fields (#1110)
Add a narrow secondary retrieval path for fields that should stay
returnable in GraphQL while being excluded from stored `_source`.
When a field is marked `retrieved_from: :doc_values`, ElasticGraph:
- keeps the field in GraphQL output types
- excludes the field from datastore `_source` via `_source.excludes`
- requests the field through datastore `docvalue_fields`
- resolves the field from `fields` in datastore hits when `_source` omits it
The change is intentionally narrow: only direct, non-list, non-text
GraphQL leaf fields on indexed root document types are supported.
Query planning only uses `docvalue_fields` when every participating
index definition agrees on the retrieval method.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
raiseKeyError,"key not found: #{joined_path}"unlessfields
153
+
fields.fetch(joined_path)
154
+
end
155
+
134
156
deftotal_document_count(default: nil)
135
157
super() || default || raise(Errors::CountUnavailableError,"#{__method__} is unavailable; set `query.total_document_count_needed = true` to make it available")
0 commit comments