paulirwin opened a new pull request, #1167:
URL: https://github.com/apache/lucenenet/pull/1167

   - [X] You've read the [Contributor 
Guide](https://github.com/apache/lucenenet/blob/main/CONTRIBUTING.md) and [Code 
of Conduct](https://www.apache.org/foundation/policies/conduct.html).
   - [X] You've included unit or integration tests for your change, where 
applicable.
   - [X] You've included inline docs for your change, where applicable.
   - [X] There's an open issue for the PR that you are making. If you'd like to 
propose a change, please [open an 
issue](https://github.com/apache/lucenenet/issues/new/choose) to discuss the 
change or find an existing issue.
   
   Fixes a dictionary access bug in MultiFieldQueryParser found during 
investigating #1157
   
   Related #1157
   
   ## Description
   
   In the Java code, it calls `.get` on the map and checks for null. We were 
implicitly throwing a KeyNotFoundException instead. This changes the code to do 
a safe check with `TryGetValue` which more closely matches the upstream 
behavior.
   
   Additionally, this adds a test case to confirm boosts are working as 
expected as reported in #1157.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to