lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Updated: (LUCENE-1223) lazy fields don't enforce binary vs string value
Date Tue, 11 Mar 2008 23:08:46 GMT


Michael McCandless updated LUCENE-1223:

    Attachment: LUCENE-1223.patch

Attached patch that just propagates the "binary" value from when we scanned the fields, into
the LazyField, recording it as isBinary.  Then I enforce isBinary before returning a binaryValue()
and !isBinary before returning a stringValue().

I'll commit in a day or two.

> lazy fields don't enforce binary vs string value
> ------------------------------------------------
>                 Key: LUCENE-1223
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3, 2.3.1
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.4
>         Attachments: LUCENE-1223.patch
> If you have a binary field, and load it lazy, and then ask that field
> for its stringValue, it will incorrectly give you a String back (and
> then will refuse to give a binaryValue).  And, vice-versa.

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