[ 
https://issues.apache.org/jira/browse/CONNECTORS-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413555#comment-13413555
 ] 

Karl Wright commented on CONNECTORS-491:
----------------------------------------

Hoss says:

Using the HTML form below, and submitting to "nc -l "8983" i was able to
recreate nearly exactly the MIME content you mentioned.  when i killed nc,
ran the solr example in it's place, and resubmited the form, the
echoParams output showed me that solr was recognizing the expected two
values for "metadata_attribute_name" ...

{code}
<html>
<head><title>Test of form data</title></head>
<body>
<form method="POST" action="http://localhost:8983/solr/collection1/select";
enctype="multipart/form-data">
  <input type="text" name="q" value="solr" />
  <input type="text" name="echoParams" value="all" />
  <input type="text" name="metadata_attribute_name" value="abc;def;ghi" />
  <input type="text" name="metadata_attribute_name" value="second value" />
  <input type="submit"/>
 </form>
</body>
</html>
{code}

...

{code}
<arr name="metadata_attribute_name"><str>abc;def;ghi</str><str>second 
value</str></arr>
{code}


                
> Solr Connector does not treat metadata fields with semicolons in them properly
> ------------------------------------------------------------------------------
>
>                 Key: CONNECTORS-491
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-491
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Lucene/SOLR connector
>    Affects Versions: ManifoldCF 0.5.1
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 0.7
>
>
> The Solr connector does not escape metadata values that have ";" characters 
> in them, and Solr thus tries to treat these as multi-valued fields.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to