Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AE9DB200CA4 for ; Wed, 7 Jun 2017 22:36:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ACC8F160BD0; Wed, 7 Jun 2017 20:36:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 24B5A160BBF for ; Wed, 7 Jun 2017 22:36:51 +0200 (CEST) Received: (qmail 43134 invoked by uid 500); 7 Jun 2017 20:36:51 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 43124 invoked by uid 99); 7 Jun 2017 20:36:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2017 20:36:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A762FDFC2E; Wed, 7 Jun 2017 20:36:50 +0000 (UTC) From: m-khl To: dev@lucene.apache.org Reply-To: dev@lucene.apache.org References: In-Reply-To: Subject: [GitHub] lucene-solr pull request #202: SOLR-10703 Add prepare and finish in DocTrasf... Content-Type: text/plain Message-Id: <20170607203650.A762FDFC2E@git1-us-west.apache.org> Date: Wed, 7 Jun 2017 20:36:50 +0000 (UTC) archived-at: Wed, 07 Jun 2017 20:36:52 -0000 Github user m-khl commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/202#discussion_r120737742 --- 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 -- I suppose if anything can be done with existing facilities, they should be utilised. I don't take it much if some name is misleading. We have a lot of much more severe issues and live with them. -1 for "just add" --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org