lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhinav Shah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4286) Atomic Updates on multi-valued fields giving unexpected results
Date Thu, 10 Jan 2013 19:54:13 GMT

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

Abhinav Shah commented on SOLR-4286:
------------------------------------

I tried on nightly build - apache-solr-4.1-2013-01-10_05-50-28.zip, and it works.

Thanks
                
> 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
>            Assignee: Shalin Shekhar Mangar
>            Priority: Blocker
>
> 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 'specimens.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 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"/>
> {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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message