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 EB4862004A1 for ; Thu, 24 Aug 2017 12:34:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E99E116AC3C; Thu, 24 Aug 2017 10:34:08 +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 3C0AF16AC3B for ; Thu, 24 Aug 2017 12:34:08 +0200 (CEST) Received: (qmail 59846 invoked by uid 500); 24 Aug 2017 10:34:06 -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 59835 invoked by uid 99); 24 Aug 2017 10:34:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2017 10:34:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B22CD1806E1 for ; Thu, 24 Aug 2017 10:34:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id pIEotkPU1102 for ; Thu, 24 Aug 2017 10:34:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9BC995F6D3 for ; Thu, 24 Aug 2017 10:34:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E5EEFE08A0 for ; Thu, 24 Aug 2017 10:34:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E2CD525381 for ; Thu, 24 Aug 2017 10:34:00 +0000 (UTC) Date: Thu, 24 Aug 2017 10:34:00 +0000 (UTC) From: "Christine Poerschke (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SOLR-11254) add score-less (abstract) DocTransformer.transform method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 24 Aug 2017 10:34:09 -0000 [ https://issues.apache.org/jira/browse/SOLR-11254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christine Poerschke resolved SOLR-11254. ---------------------------------------- Resolution: Fixed Fix Version/s: 7.1 master (8.0) > add score-less (abstract) DocTransformer.transform method > --------------------------------------------------------- > > Key: SOLR-11254 > URL: https://issues.apache.org/jira/browse/SOLR-11254 > Project: Solr > Issue Type: Task > Reporter: Christine Poerschke > Assignee: Christine Poerschke > Fix For: master (8.0), 7.1 > > Attachments: SOLR-11254.patch > > > Background and motivation: > * Most {{DocTransformer}} implementations don't use the {{score}} argument of the {{transform}} method. > * Two-and-a-half of the three method callers pass {{0}} to indicate {{"no score"}}. > ** https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.6.0/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java#L253 > ** https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.6.0/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java#L302 > ** https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.6.0/solr/core/src/java/org/apache/solr/response/DocsStreamer.java#L170 > * Without the change being proposed in this ticket the fix for SOLR-11180 and SOLR-11220 (included in the SOLR-11164 patch) would need to also interpret a score of {{0}} to mean {{"no score"}}. > Summary of proposed change (for _master_ and _branch_7x_ branches): > {code} > - public abstract void transform(SolrDocument doc, int docid, float score) throws IOException; > + public void transform(SolrDocument doc, int docid, float score) throws IOException { > + transform(doc, docid); > + } > + > + public abstract void transform(SolrDocument doc, int docid) throws IOException; > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org