nick-boss-tech commented on code in PR #5298:
URL: https://github.com/apache/solr/pull/5298#discussion_r4773402178
##########
solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java:
##########
@@ -116,6 +116,15 @@ public String[] getExtraRequestFields() {
return null;
}
+ /**
+ * Whether index-backed RealTime Get should retain its legacy document
loading and conversion for
+ * this transformer, because its stored-field dependencies cannot be
determined in advance. Prefer
+ * declaring dependencies with {@link #getExtraRequestFields()} where
possible.
+ */
+ public boolean requiresFullDocumentForRTG() {
+ return false;
+ }
+
Review Comment:
Took the other way: the method is off DocTransformer. The opt-in is now a
narrow interface, FullDocumentTransformer, implemented only by [subquery],
whose subrequest parameter resolution can read any field of the parent row and
so cannot declare its fields in advance. It is needed in this PR because RTG's
load became selective here; before, RTG always loaded the full requested field
set, so every transformer saw the whole document.
🤖 *AI-generated text above* 🤖
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]