Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Duplicate
-
4.0
-
None
-
None
-
Windows 7 64-bit
Description
I am using apache-solr 4.0.
I am trying to post the following document -
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>'
This document gets successfully posted. However, the multi-valued field 'specimens.specimenType', gets stored as following in SOLR -
<arr name="specimens.specimenType">
<str>{set=Bone Marrow}</str>
<str>{set=Nerve tissue}</str>
</arr>
I did not expect "
{set=" to be stored along with the text "Bone Marror". My Solr schema xml definition for the field specimens.SpecimenType is - {code}<field indexed="true" multiValued="true" name="specimens.specimenType" omitNorms="false" omitPositions="true" omitTermFreqAndPositions="true" stored="true" termVectors="false" type="text_en"/>
Can someone help?