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

Abhinav Shah commented on SOLR-139:
-----------------------------------

I am using apache-solr 4.0.
I am trying to post the following document - 
{code}
curl http://irvis016:8983/solr/collection1/update?commit=true -H "Content-Type: 
text/xml" --data-binary '<add commitWithin="5000"><doc boost="1.0"><field 
name="accessionNumber" update="set">3165297</field><field name="status" 
update="set">ORDERED</field><field name="account.accountName" update="set">US 
LABS DEMO ACCOUNT</field><field name="account.addresses.address1" 
update="set">2601 Campus Drive</field><field name="account.addresses.city" 
update="set">Irvine</field><field name="account.addresses.state" 
update="set">CA</field><field name="account.addresses.zip" 
update="set">92622</field><field name="account.externalIds.sourceSystem" 
update="set">10442</field><field name="orderingPhysician.lcProviderNumber" 
update="set">60086</field><field name="patient.lpid" 
update="set">5571351625769103</field><field name="patient.patientName.lastName" 
update="set">test</field><field name="patient.patientName.firstName" 
update="set">test123</field><field name="patient.patientSSN" 
update="set">643522342</field><field name="patient.patientDOB" 
update="set">1979-11-11T08:00:00.000Z</field><field name="patient.mrNs.mrn" 
update="set">5423</field><field name="specimens.specimenType" update="set">Bone 
Marrow</field><field name="specimens.specimenType" update="set">Nerve 
tissue</field><field name="UID">3165297USLABS2012</field></doc></add>'
{code}

This document gets successfully posted. However, the multi-valued field 
'specimen.specimenType', gets stored as following in SOLR -
{code}
<arr name="specimens.specimenType">
<str>{set=Bone Marrow}</str>
<str>{set=Nerve tissue}</str>
</arr>
{code}

My Solr schema xml definition for the field specimen.SpecimenType is - 
{code}
<field indexed="true" multiValued="true" name="specimens.specimenType" 
omitNorms="false" omitPositions="true" omitTermFreqAndPositions="true" 
stored="true" termVectors="false" type="text_en"/>
{code}

Can someone help?
                
> Support updateable/modifiable documents
> ---------------------------------------
>
>                 Key: SOLR-139
>                 URL: https://issues.apache.org/jira/browse/SOLR-139
>             Project: Solr
>          Issue Type: New Feature
>          Components: update
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>
>         Attachments: Eriks-ModifiableDocument.patch, 
> Eriks-ModifiableDocument.patch, Eriks-ModifiableDocument.patch, 
> Eriks-ModifiableDocument.patch, Eriks-ModifiableDocument.patch, 
> Eriks-ModifiableDocument.patch, getStoredFields.patch, getStoredFields.patch, 
> getStoredFields.patch, getStoredFields.patch, getStoredFields.patch, 
> SOLR-139_createIfNotExist.patch, SOLR-139-IndexDocumentCommand.patch, 
> SOLR-139-IndexDocumentCommand.patch, SOLR-139-IndexDocumentCommand.patch, 
> SOLR-139-IndexDocumentCommand.patch, SOLR-139-IndexDocumentCommand.patch, 
> SOLR-139-IndexDocumentCommand.patch, SOLR-139-IndexDocumentCommand.patch, 
> SOLR-139-IndexDocumentCommand.patch, SOLR-139-IndexDocumentCommand.patch, 
> SOLR-139-IndexDocumentCommand.patch, SOLR-139-IndexDocumentCommand.patch, 
> SOLR-139-ModifyInputDocuments.patch, SOLR-139-ModifyInputDocuments.patch, 
> SOLR-139-ModifyInputDocuments.patch, SOLR-139-ModifyInputDocuments.patch, 
> SOLR-139.patch, SOLR-139.patch, SOLR-139-XmlUpdater.patch, 
> SOLR-269+139-ModifiableDocumentUpdateProcessor.patch
>
>
> It would be nice to be able to update some fields on a document without 
> having to insert the entire document.
> Given the way lucene is structured, (for now) one can only modify stored 
> fields.
> While we are at it, we can support incrementing an existing value - I think 
> this only makes sense for numbers.
> for background, see:
> http://www.nabble.com/loading-many-documents-by-ID-tf3145666.html#a8722293

--
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to