Using the standard Solr example for Solr 4.5, the following works, splitting
the features CSV field into multiple values:
curl
"http://localhost:8983/solr/update/csv?commit=true&f.features.split=true&f.features.separator=%3A&f.features.encapsulator=%22"
-H "Content-Type: text/csv" -d '
id,name,features
doc-1,doc1,feat1:feat2'
You may need to add &stream.contentType=text/csv to you command.
-- Jack Krupansky
-----Original Message-----
From: Utkarsh Sengar
Sent: Thursday, October 10, 2013 4:51 PM
To: solr-user@lucene.apache.org
Subject: Using split in updateCSV for SolrCloud 4.4
Hello,
I am trying to use split: http://wiki.apache.org/solr/UpdateCSV#split while
loading some csv data via updateCSV.
This is the field:
<field name="merchantList" type="string" indexed="true" stored="true"
multiValued="true" omitNorms="true" termVectors="false"
termPositions="false" termOffsets="false"/>
This is the column in CSV (merchantList):
....values....,"16179:10950",.....values..
This is the URL I call:
http://localhost/solr/coll1/update/csv?commit=true&f.merchantList.split=true&f.merchantList.separator=%3A&f.merchantList.encapsulator=
"&escape=\&stream.file=/data/dump/log_20130101'
Currently when I load the data, I see this:
"merchantList": ["16179:10950"],
But I want this:
"merchantList": ["16179","10950"],
This example is int but I have intentionally kept it as a string since some
values can also be a string.
Any suggestions where I am going wrong?
--
Thanks,
-Utkarsh