You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Itamar Syn-Hershko (JIRA)" <ji...@apache.org> on 2014/02/21 12:24:20 UTC
[jira] [Resolved] (LUCENENET-526) Multifieldqueryparser now throws
a KeyNotFoundException if all search fields do not have boosts set
[ https://issues.apache.org/jira/browse/LUCENENET-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Itamar Syn-Hershko resolved LUCENENET-526.
------------------------------------------
Resolution: Cannot Reproduce
The code already uses TryGetValue, so KNFE is never thrown. If you can provide a failing test that would be helpful.
> Multifieldqueryparser now throws a KeyNotFoundException if all search fields do not have boosts set
> ---------------------------------------------------------------------------------------------------
>
> Key: LUCENENET-526
> URL: https://issues.apache.org/jira/browse/LUCENENET-526
> Project: Lucene.Net
> Issue Type: Bug
> Components: Lucene.Net Core
> Affects Versions: Lucene.Net 3.0.3
> Reporter: Chris Dondanville
> Assignee: Itamar Syn-Hershko
> Priority: Minor
>
> Using the Multifieldqueryparser overload that accepts a Dictionary<string, float> of boosts used to only require setting boosts for fields whose default boost needed to be changed. After upgrading from 2.9.2 to 3.0.3, MultiFieldQueryParser now throws a KeyNotFoundException unless I add entries for the remaining fields to the boost Dictionary.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)