[
https://issues.apache.org/jira/browse/SOLR-7622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan McKinley updated SOLR-7622:
--------------------------------
Attachment: SOLR-7622-extra-request-fields.patch
The key addition is:
{code}
+ /**
+ * When a transformer needs access to fields that are not automaticaly
derived from the
+ * input fields names, this option lets us explicitly say the field names
that we hope
+ * will be in the SolrDocument. These fields will be requestd from the
+ * {@link SolrIndexSearcher} but may or may not be returned in the final
+ * {@link QueryResponseWriter}
+ *
+ * @return a list of extra lucene fields
+ */
+ public String[] getExtraRequestFields() {
+ return null;
+ }
+
{code}
> Allow DocumentTransformer to request fields that are not displayed
> ------------------------------------------------------------------
>
> Key: SOLR-7622
> URL: https://issues.apache.org/jira/browse/SOLR-7622
> Project: Solr
> Issue Type: Improvement
> Reporter: Ryan McKinley
> Assignee: Ryan McKinley
> Attachments: SOLR-7622-extra-request-fields.patch
>
>
> Currently, a DocumentTransformer can only inspect fields that appear in the
> final SolrDocument. But we already have infrastructure to request fields
> from the IndexSearcher that do not get displayed.
> This will let DocumentTransformers ask for more fields that are not requested
> in the fl parameter
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]