lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Itamar Syn-Hershko (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENENET-526) Multifieldqueryparser now throws a KeyNotFoundException if all search fields do not have boosts set
Date Fri, 21 Feb 2014 11:24:20 GMT

     [ 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)

Mime
View raw message