lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nihed mbarek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-4126) Partial Update retrieve int/float value error
Date Thu, 29 Nov 2012 17:14:58 GMT
nihed mbarek created SOLR-4126:
----------------------------------

             Summary: Partial Update retrieve int/float value error
                 Key: SOLR-4126
                 URL: https://issues.apache.org/jira/browse/SOLR-4126
             Project: Solr
          Issue Type: Bug
    Affects Versions: 4.0
         Environment: Solr 4.0 
            Reporter: nihed mbarek


Dear, 

I have a document that I update using the recommendation of this link http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/

as XML/JSON, the result is ok 
<int name="a">109</int>
<float name="b">4.368</float>
<int name="c">5318311</int>

but in my request handler : 

final Document doc = req.getSearcher().doc(x);
final List<IndexableField> fields = doc.getFields();
            for (IndexableField indexableField : fields) {
                System.out.println(indexableField.name()+" "+indexableField.stringValue());
            }

the result is totally out of range : 
a €m
b Àࢼڨ
c €Ԓڧ


the kind of result is only visible for field with type different than string

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message