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] Created: (LUCENE-1564) Field.setValue(...) doesn't properly handle switching between byte[] and other types
Date Fri, 13 Mar 2009 18:21:52 GMT
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


Mime
View raw message