You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/09/08 12:26:46 UTC
[jira] [Updated] (LUCENE-6758) Adding a SHOULD clause to a BQ over
an empty field clears the score when using DefaultSimilarity
[ https://issues.apache.org/jira/browse/LUCENE-6758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-6758:
--------------------------------
Attachment: LUCENE-6758.patch
The problem is just with crappy queryNorm in DefaultSimilarity, as expected.
Previously maxDoc was used, which was always assumed to be a positive integer... but docCount can be zero.
> Adding a SHOULD clause to a BQ over an empty field clears the score when using DefaultSimilarity
> ------------------------------------------------------------------------------------------------
>
> Key: LUCENE-6758
> URL: https://issues.apache.org/jira/browse/LUCENE-6758
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: Trunk
> Reporter: Terry Smith
> Attachments: LUCENE-6758.patch, LUCENE-6758.patch
>
>
> Patch with unit test to show the bug will be attached.
> I've narrowed this change in behavior with git bisect to the following commit:
> {noformat}
> commit 698b4b56f0f2463b21c9e3bc67b8b47d635b7d1f
> Author: Robert Muir <rm...@apache.org>
> Date: Thu Aug 13 17:37:15 2015 +0000
> LUCENE-6711: Use CollectionStatistics.docCount() for IDF and average field length computations
>
> git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1695744 13f79535-47bb-0310-9956-ffa450edef68
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org