You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2012/12/28 02:28:13 UTC
[jira] [Reopened] (SOLR-4134) Cannot "set" multiple values into
multivalued field with partial updates when using the standard
RequestWriter.
[ https://issues.apache.org/jira/browse/SOLR-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley reopened SOLR-4134:
--------------------------------
Reopening - I think this broke increment.
I added a test here:
http://svn.apache.org/viewvc?rev=1426373&view=rev
The increment code ends up trying to parse "[1]" because the XML loader always represents extended info (like atomic updates) as a List<Object>. We should try to preserve as much information as possible and only use a list when there are multiple values (or if list syntax is actually used).
> Cannot "set" multiple values into multivalued field with partial updates when using the standard RequestWriter.
> ---------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-4134
> URL: https://issues.apache.org/jira/browse/SOLR-4134
> Project: Solr
> Issue Type: Bug
> Components: clients - java, update
> Affects Versions: 4.0
> Reporter: Will Butler
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: 4.1
>
> Attachments: SOLR-4134.patch, SOLR-4134.patch
>
>
> I would like to "set" multiple values into a field using partial updates like so:
> \\
> \\
> {code}
> List<String> values = new ArrayList<String>();
> values.add("one");
> values.add("two");
> values.add("three");
> doc.setField(field, singletonMap("set", values));
> {code}
> When using the standard XML-based RequestWriter, you end up with a single value that looks like [one, two, three], because of the toString() calls on lines 130 and 132 of ClientUtils. It works properly when using the BinaryRequestWriter.
--
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