Github user diegoceccarelli commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/202#discussion_r120699342 --- Diff: solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java --- @@ -41,12 +41,26 @@ */ public abstract String getName(); + + /** + * This is called before {@link #transform} to provide context for any subsequent transformations. + * + * @param context The {@link ResultContext} stores information about how the documents were produced. + * @see #needsSolrIndexSearcher + */ + public void prepare( ResultContext context ) { --- End diff -- if you want to do something different than setting the context (see LTRFeatureLoggerTransformerFactory for example), the name is misleading. we could keep the setContext and just add the `prepare` method.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org