You can send csv format data directly to Solr. For example:

curl http://localhost:8983/solr/update?commit=true -H 'Content-type:application/csv' -d '
id,f1_s,f2_i
d-1,abc,123
d-2,def,456
d-3,xyz,999'

Just include your dynamic field names on the first line of data.

-- Jack Krupansky

-----Original Message----- From: weiwei-gmail
Sent: Friday, January 11, 2013 12:29 AM
To: solr-user@lucene.apache.org
Subject: how to import index by csv , when field has dynamicField type


hi, guys

when u using dataimport handler to import index , it's ok.

but later when data is became bigger and bigger , i found using dataimport handler is very slow . it costs nearly 20 mins.

So i try using another way to build index . using script to put data into csv file then import to solr .


But i found one problem , how it handle with dynamicFiled ? becasue in the csv , the first line is all field name and i don't know the exactly field name .


any idea ? Thanks a lot !

Reply via email to