Index Sample Data

Cloudera Search includes sample data for testing and validation. Run the relevant command to index this data for searching. Replace search01.example.com in the example below with the name of any host running the Solr Server process.

  • Security enabled:
    cd /opt/cloudera/parcels/CDH/share/doc/solr-doc*/example/exampledocs
                         find *.xml -exec curl -i -k --negotiate -u: https://search01.example.com:8985/solr/test_collection/update -H "Content-Type: text/xml" --data-binary @{} \;
  • Nonsecure:
    cd /opt/cloudera/parcels/CDH/share/doc/solr-doc*/example/exampledocs
                   java -Durl=http://search01.example.com:8983/solr/test_collection/update -jar post.jar *.xml