lucene-dev mailing list archives

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

     [ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message