lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Updated: (LUCENE-1941) MinPayloadFunction returns 0 when only one payload is present
Date Fri, 12 Feb 2010 11:18:28 GMT


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

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:
>             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:
For additional commands, e-mail:

View raw message