what request handler are you using?  csv?

If you point to the /admin/dump handler, what do you get?

http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/DumpRequestHandler.java

If there is a problem with how this gets though, we will need to fix
something in:
http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers#MultipartRequestParser

ryan





On Thu, Jul 12, 2012 at 1:17 PM,  <karl.wri...@nokia.com> wrote:
> Hi all,
>
>
>
> I received a report of a problem with posting data to Solr.  The post method
> is a multi-part form, so if you inspect it, it looks something like this:
>
>
>
>>>>>>>
>
> ----boundary---
>
> Content-Disposition: form-data; name=metadata_attribute_name
>
> Content-Type: text; charset=utf-8
>
>
>
> abc;def;ghi
>
> ---boundary---
>
> <<<<<<
>
>
>
> The problem is that, for form data, multiple values for an attribute are
> supposed to just be repeated form elements, e.g.:
>
>
>
>>>>>>>
>
> ----boundary---
>
> Content-Disposition: form-data; name=metadata_attribute_name
>
> Content-Type: text; charset=utf-8
>
>
>
> abc;def;ghi
>
> ---boundary---
>
> Content-Disposition: form-data; name=metadata_attribute_name
>
> Content-Type: text; charset=utf-8
>
>
>
> second value
>
> ---boundary---
>
>
>
> <<<<<<
>
>
>
> What’s happening, though, when this is posted to Solr is that any semicolons
> in the data are being interpreted as multi-value separators.  So when the
> above is posted, Solr apparently thinks that “metadata_attribute_name” has 4
> values, “abc”, “def”, “ghi”, and “second value”, rather than two values,
> “abc;def;ghi” and “second value”.
>
>
>
> Is this intended behavior, and if so, how am I supposed to escape “;”
> characters when communicating to Solr in this way?
>
>
>
> Karl
>
>
>
>

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

Reply via email to