Jul
30
How to Add Data to a Different Solr Core
Today a good friend asked while watching my Getting Started with Enterprise Search Using Apache Solr course in Pluralsight on how to index data in different cores in Solr. Here is the answer.
- Let’s say you want to feed data to Solr’s default collection, called collection1, using the update handler, then do this:
java -Durl=http://localhost:8983/solr/update -Dtype=text/csv -jar post.jar “Two sample courses with author test.csv”
- But if you have a different core, i.e. psdemo, then do this:
java -Durl=http://localhost:8983/solr/psdemo/update -Dtype=text/csv -jar post.jar “Two sample courses with author test.csv”
Easy as pie! If interested in watching the course please click here: http://pluralsight.com/training/courses/TableOfContents?courseName=enterprise-search-using-apache-solr .