You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2009/03/13 19:21:52 UTC
[jira] Created: (LUCENE-1564) Field.setValue(...) doesn't properly
handle switching between byte[] and other types
Field.setValue(...) doesn't properly handle switching between byte[] and other types
------------------------------------------------------------------------------------
Key: LUCENE-1564
URL: https://issues.apache.org/jira/browse/LUCENE-1564
Project: Lucene - Java
Issue Type: Bug
Affects Versions: 2.4.1
Reporter: Michael McCandless
Assignee: Michael McCandless
Priority: Minor
Fix For: 2.9
This came up in PyLucene testing, based on Lucene 2.4.1. Thread here:
http://pylucene.markmail.org/message/75jzxzqi3smp2s4z
The problem is that Field.setValue does not fix up the isBinary
boolean, so if you create a String field, and then do
setValue(byte[]), you'll get an exception when adding a document
containing that field to the index.
--
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
[jira] Resolved: (LUCENE-1564) Field.setValue(...) doesn't properly
handle switching between byte[] and other types
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1564.
----------------------------------------
Resolution: Fixed
> Field.setValue(...) doesn't properly handle switching between byte[] and other types
> ------------------------------------------------------------------------------------
>
> Key: LUCENE-1564
> URL: https://issues.apache.org/jira/browse/LUCENE-1564
> Project: Lucene - Java
> Issue Type: Bug
> Affects Versions: 2.4.1
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 2.9
>
> Attachments: LUCENE-1564.patch
>
>
> This came up in PyLucene testing, based on Lucene 2.4.1. Thread here:
> http://pylucene.markmail.org/message/75jzxzqi3smp2s4z
> The problem is that Field.setValue does not fix up the isBinary
> boolean, so if you create a String field, and then do
> setValue(byte[]), you'll get an exception when adding a document
> containing that field to the index.
--
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
[jira] Updated: (LUCENE-1564) Field.setValue(...) doesn't properly
handle switching between byte[] and other types
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-1564:
---------------------------------------
Attachment: LUCENE-1564.patch
Attached patch. I plan to commit in a day or so.
> Field.setValue(...) doesn't properly handle switching between byte[] and other types
> ------------------------------------------------------------------------------------
>
> Key: LUCENE-1564
> URL: https://issues.apache.org/jira/browse/LUCENE-1564
> Project: Lucene - Java
> Issue Type: Bug
> Affects Versions: 2.4.1
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 2.9
>
> Attachments: LUCENE-1564.patch
>
>
> This came up in PyLucene testing, based on Lucene 2.4.1. Thread here:
> http://pylucene.markmail.org/message/75jzxzqi3smp2s4z
> The problem is that Field.setValue does not fix up the isBinary
> boolean, so if you create a String field, and then do
> setValue(byte[]), you'll get an exception when adding a document
> containing that field to the index.
--
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