Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F9D170E7 for ; Thu, 25 Aug 2011 02:43:05 +0000 (UTC) Received: (qmail 76368 invoked by uid 500); 25 Aug 2011 02:43:01 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 75841 invoked by uid 500); 25 Aug 2011 02:43:00 -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 74333 invoked by uid 99); 25 Aug 2011 02:42:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 02:42:53 +0000 X-ASF-Spam-Status: No, hits=-2000.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 02:42:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8316DCE445 for ; Thu, 25 Aug 2011 02:42:29 +0000 (UTC) Date: Thu, 25 Aug 2011 02:42:29 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <1060910532.12150.1314240149533.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1472646612.12142.1314240149112.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LUCENE-3401) need to ensure that sims that use collection-level stats (e.g. sumTotalTermFreq) handle non-existent field 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-3401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir updated LUCENE-3401: -------------------------------- Attachment: LUCENE-3401.patch here's test with fix to SimilarityBase. I tried to rearrange this in a way that its not confusing. > need to ensure that sims that use collection-level stats (e.g. sumTotalTermFreq) handle non-existent field > ---------------------------------------------------------------------------------------------------------- > > Key: LUCENE-3401 > URL: https://issues.apache.org/jira/browse/LUCENE-3401 > Project: Lucene - Java > Issue Type: Bug > Affects Versions: flexscoring branch > Reporter: Robert Muir > Attachments: LUCENE-3401.patch > > > Because of things like queryNorm, unfortunately similarities have to handle the case where they are asked to computeStats() for a term, where the field does not exist at all. > (Note they will never have to actually score anything, but unless we break how queryNorm works for TFIDF, we have to deal with this case). > I noticed this while doing some benchmarking, so i created a test to test some cases like this across all the sims. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org