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

Jun Ohtani edited comment on SOLR-3502 at 7/21/12 6:30 PM:
-----------------------------------------------------------

I try "partial update" for 4.0-ALPHA using exampledocs/mem.xml.
I reproduce this issue.

using follows xml to partial update.

{quote}
<add>
<doc>
  <field name="id">VS1GB400C3</field>
  <field name="_version_">version number</field>
  <field name="cat" update="add">add_cats</field>
</doc>
</add>
{quote}

1st partial update return success.
But "price_c" field (this field is not multivalued) has multi value as 
following.

{quote}
{
  "responseHeader":{
    "status":0,
    "QTime":3,
    "params":{
      "fl":"price_c",
      "indent":"true",
      "wt":"json",
      "q":"id:VS1GB400C3"}},
  "response":{"numFound":1,"start":0,"docs":[
      {
        "price_c":["74.99,USD",
          "74.99,USD"]}]
  }}
{quote}

And 2nd partial update return failed ("Solr returned an error #400 Bad 
Request").
Solr output next error log.
{quote}
ERROR: [doc=VS1GB400C3] multiple values encountered for non multiValued field 
price_c: [74.99,USD, 74.99,USD]
        at 
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:242)
        at 
org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:72)
        at 
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:175)

{quote}
                
      was (Author: jun_o):
    I try "partial update" for 4.0-ALPHA using exampledocs/mem.xml. 
using follows xml to partial update.

{quote}
<add>
<doc>
  <field name="id">VS1GB400C3</field>
  <field name="_version_">version number</field>
  <field name="cat" update="add">add_cats</field>
</doc>
</add>
{quote}

1st partial update return success.
But 
{quote}
{}

                  
> [Copy Field][Importing] Copy Field duplicate a field and a multivalued field 
> can be created without having field multivalued in schema
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3502
>                 URL: https://issues.apache.org/jira/browse/SOLR-3502
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 3.1
>         Environment: two Solr 3.1 on linux.
>            Reporter: Alexis Torres Paderewski
>            Priority: Minor
>              Labels: newbie
>         Attachments: SOLR-3502-4x.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have two field on both solr:
> <field name="A" type="text" indexed="true" stored="true"/>
> <field name="B" type="string" indexed="true" stored="true"/>
> <copyField source="A" dest="B"/>
> We have a SolrDocument reader (solrj client without pojo binding) that takes 
> all docs from one solr and SolrInputDocument write them on the other solr.
> On B field in the target solr we ended with an Array containing the duplicate 
> value we have on the first solr. How could solr internally break schema ?

--
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to