Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 48661 invoked from network); 27 Aug 2009 17:11:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Aug 2009 17:11:23 -0000 Received: (qmail 74526 invoked by uid 500); 27 Aug 2009 17:11:22 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 74453 invoked by uid 500); 27 Aug 2009 17:11:22 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 74438 invoked by uid 99); 27 Aug 2009 17:11:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2009 17:11:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2009 17:11:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4339B234C044 for ; Thu, 27 Aug 2009 10:10:59 -0700 (PDT) Message-ID: <609417715.1251393059270.JavaMail.jira@brutus> Date: Thu, 27 Aug 2009 10:10:59 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-1864) bogus javadocs for FieldValueHitQuery.fillFields In-Reply-To: <1857701619.1251386341183.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless resolved LUCENE-1864. ---------------------------------------- Resolution: Fixed > bogus javadocs for FieldValueHitQuery.fillFields > ------------------------------------------------ > > Key: LUCENE-1864 > URL: https://issues.apache.org/jira/browse/LUCENE-1864 > Project: Lucene - Java > Issue Type: Bug > Reporter: Hoss Man > Assignee: Michael McCandless > Fix For: 2.9 > > > FieldValueHitQuery.fillFields has javadocs that seem to be left over from a completely different method... > {code} > /** > * Given a FieldDoc object, stores the values used to sort the given document. > * These values are not the raw values out of the index, but the internal > * representation of them. This is so the given search hit can be collated by > * a MultiSearcher with other search hits. > * > * @param doc > * The FieldDoc to store sort values into. > * @return The same FieldDoc passed in. > * @see Searchable#search(Weight,Filter,int,Sort) > */ > FieldDoc fillFields(final Entry entry) { > final int n = comparators.length; > final Comparable[] fields = new Comparable[n]; > for (int i = 0; i < n; ++i) { > fields[i] = comparators[i].value(entry.slot); > } > //if (maxscore > 1.0f) doc.score /= maxscore; // normalize scores > return new FieldDoc(entry.docID, entry.score, fields); > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org