Abhinav Shah created SOLR-4286:
----------------------------------
Summary: Atomic Updates on multi-valued fields giving unexpected
results
Key: SOLR-4286
URL: https://issues.apache.org/jira/browse/SOLR-4286
Project: Solr
Issue Type: Bug
Components: update
Affects Versions: 4.0
Environment: Windows 7 64-bit
Reporter: Abhinav Shah
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}
I did not expect "{set=" to be stored along with the text "Bone Marror".
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?
--
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: [email protected]
For additional commands, e-mail: [email protected]