[
https://issues.apache.org/jira/browse/LUCENE-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
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: https://issues.apache.org/jira/browse/LUCENE-1223
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]