Get started with Solr
NOTE: Replace the CORE-NAME and PORT-NUMBER placeholders in the commands below with actual values.
To create a core, use these commands:
$ cd installdir/apache-solr $ sudo ./bin/solr create -c CORE-NAME -p PORT-NUMBER
To add documents, use these commands:
$ cd installdir/apache-solr $ sudo ./bin/post -c CORE-NAME FILES
NOTE: Currently the bin/post tool does not have a comparable Windows script, but the underlying Java program invoked is available. See the Post Tool, Windows section for details.