[jira] [Updated] (SOLR-4286) Atomic Updates on multi-valued fields giving unexpected results

2013-01-10 Thread Erik Hatcher (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-4286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Erik Hatcher updated SOLR-4286:
---

Priority: Blocker  (was: Major)

 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=5000doc 
 boost=1.0field name=accessionNumber update=set3165297/fieldfield 
 name=status update=setORDERED/fieldfield name=account.accountName 
 update=setUS LABS DEMO ACCOUNT/fieldfield 
 name=account.addresses.address1 update=set2601 Campus 
 Drive/fieldfield name=account.addresses.city 
 update=setIrvine/fieldfield name=account.addresses.state 
 update=setCA/fieldfield name=account.addresses.zip 
 update=set92622/fieldfield name=account.externalIds.sourceSystem 
 update=set10442/fieldfield name=orderingPhysician.lcProviderNumber 
 update=set60086/fieldfield name=patient.lpid 
 update=set5571351625769103/fieldfield 
 name=patient.patientName.lastName update=settest/fieldfield 
 name=patient.patientName.firstName update=settest123/fieldfield 
 name=patient.patientSSN update=set643522342/fieldfield 
 name=patient.patientDOB update=set1979-11-11T08:00:00.000Z/fieldfield 
 name=patient.mrNs.mrn update=set5423/fieldfield 
 name=specimens.specimenType update=setBone Marrow/fieldfield 
 name=specimens.specimenType update=setNerve tissue/fieldfield 
 name=UID3165297USLABS2012/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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-4286) Atomic Updates on multi-valued fields giving unexpected results

2013-01-08 Thread Abhinav Shah (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-4286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abhinav Shah updated SOLR-4286:
---

Description: 
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=5000doc boost=1.0field 
name=accessionNumber update=set3165297/fieldfield name=status 
update=setORDERED/fieldfield name=account.accountName update=setUS 
LABS DEMO ACCOUNT/fieldfield name=account.addresses.address1 
update=set2601 Campus Drive/fieldfield name=account.addresses.city 
update=setIrvine/fieldfield name=account.addresses.state 
update=setCA/fieldfield name=account.addresses.zip 
update=set92622/fieldfield name=account.externalIds.sourceSystem 
update=set10442/fieldfield name=orderingPhysician.lcProviderNumber 
update=set60086/fieldfield name=patient.lpid 
update=set5571351625769103/fieldfield name=patient.patientName.lastName 
update=settest/fieldfield name=patient.patientName.firstName 
update=settest123/fieldfield name=patient.patientSSN 
update=set643522342/fieldfield name=patient.patientDOB 
update=set1979-11-11T08:00:00.000Z/fieldfield name=patient.mrNs.mrn 
update=set5423/fieldfield name=specimens.specimenType update=setBone 
Marrow/fieldfield name=specimens.specimenType update=setNerve 
tissue/fieldfield name=UID3165297USLABS2012/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?

  was:
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=5000doc boost=1.0field 
name=accessionNumber update=set3165297/fieldfield name=status 
update=setORDERED/fieldfield name=account.accountName update=setUS 
LABS DEMO ACCOUNT/fieldfield name=account.addresses.address1 
update=set2601 Campus Drive/fieldfield name=account.addresses.city 
update=setIrvine/fieldfield name=account.addresses.state 
update=setCA/fieldfield name=account.addresses.zip 
update=set92622/fieldfield name=account.externalIds.sourceSystem 
update=set10442/fieldfield name=orderingPhysician.lcProviderNumber 
update=set60086/fieldfield name=patient.lpid 
update=set5571351625769103/fieldfield name=patient.patientName.lastName 
update=settest/fieldfield name=patient.patientName.firstName 
update=settest123/fieldfield name=patient.patientSSN 
update=set643522342/fieldfield name=patient.patientDOB 
update=set1979-11-11T08:00:00.000Z/fieldfield name=patient.mrNs.mrn 
update=set5423/fieldfield name=specimens.specimenType update=setBone 
Marrow/fieldfield name=specimens.specimenType update=setNerve 
tissue/fieldfield name=UID3165297USLABS2012/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?


 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=5000doc 
 boost=1.0field name=accessionNumber update=set3165297/fieldfield 
 name=status update=setORDERED/fieldfield name=account.accountName 
 update=setUS LABS DEMO ACCOUNT/fieldfield 
 name=account.addresses.address1 update=set2601 Campus 
 Drive/fieldfield name=account.addresses.city 
 update=setIrvine/fieldfield name=account.addresses.state 
 update=setCA/fieldfield