You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2018/01/11 20:08:00 UTC

[jira] [Updated] (SOLR-6046) Atomic Updates using a String[] for multiple values do not work unless you are using the BinaryRequestWriter

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

Cassandra Targett updated SOLR-6046:
------------------------------------
    Component/s: clients - java

> Atomic Updates using a String[] for multiple values do not work unless you are using the BinaryRequestWriter
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6046
>                 URL: https://issues.apache.org/jira/browse/SOLR-6046
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 4.8
>            Reporter: Scott Lindner
>
> This is related to https://issues.apache.org/jira/browse/SOLR-6045, but somewhat in reverse.
> In this case I am using the OOB request/response writers and trying to use atomic updates.
> The following code for the field (see referenced jira for full code example) does not work:
> {code}
>         Map<String, String[]> fieldModifier = Maps.newHashMap();
>         fieldModifier.put("set", new String[] { "new_value1", "new_value2" });
>         sid.addField("field1", fieldModifier);
> {code}
> as it results in the index returning:
> {noformat}
> "field1": [
>           "[Ljava.lang.String;@162d4ea3"
>         ],
> {noformat}
> However if I modify the above code to use the BinaryRequestWriter then everything works just fine.
> Also, if I modify the above code to use a List<String> instead of a String[] then that works fine with the OOB RequestWriter as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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