[
https://issues.apache.org/jira/browse/LUCENE-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless updated LUCENE-1941:
---------------------------------------
Attachment: LUCENE-1941.patch
Attached patch.
The fix is simple -- the payload function already receives the count of how
many payloads were seen so far, so when this count is 0, min/max function
should just return the current value.
We still need a test case though... I'm probably not going to have time (off on
"vacation" (scare quotes for Marvin) soon).
> MinPayloadFunction returns 0 when only one payload is present
> -------------------------------------------------------------
>
> Key: LUCENE-1941
> URL: https://issues.apache.org/jira/browse/LUCENE-1941
> Project: Lucene - Java
> Issue Type: Bug
> Components: Query/Scoring
> Affects Versions: 2.9, 3.0
> Reporter: Erik Hatcher
> Fix For: 2.9.2, 3.0.1, 3.1
>
> Attachments: LUCENE-1941.patch
>
>
> In some experiments with payload scoring through PayloadTermQuery, I'm seeing
> 0 returned when using MinPayloadFunction. I believe there is a bug there.
> No time at the moment to flesh out a unit test, but wanted to report it for
> tracking.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]