[ 
https://issues.apache.org/jira/browse/SOLR-4126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man resolved SOLR-4126.
----------------------------

    Resolution: Not A Problem

Nihed,

solr plugins need to use the IndexSchema to access Documents in order to 
convert the encoded values in those documents into the appropriate javatypes.

see for example SolrPluginUtils.docListToSolrDocumentList or 
TextResponseWriter.toSolrDocument.

If you have more questions about writing custom plugins, please ask about them 
on the solr-user list.
                
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to