11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

http://localhost:8983/solr/<br />

The <strong>Solr</strong> Admin interface.<br />

If <strong>Solr</strong> is not running, your browser will complain that it cannot connect to the server. Check your port number<br />

and try again.<br />

Create a Core<br />

If you did not start <strong>Solr</strong> with an example configuration, you would need to create a core in order to be able to<br />

index and search. You can do so by running:<br />

$ bin/solr create -c <br />

This will create a core that uses a data-driven schema which tries to guess the correct field type when you add<br />

documents to the index.<br />

To see all available options for creating a new core, execute:<br />

$ bin/solr create -help<br />

Add Documents<br />

<strong>Solr</strong> is built to find documents that match queries. <strong>Solr</strong>'s schema provides an idea of how content is structured<br />

(more on the schema later), but without documents there is nothing to find. <strong>Solr</strong> needs input before it can do<br />

much.<br />

You may want to add a few sample documents before trying to index your own content. The <strong>Solr</strong> installation<br />

comes with different types of example documents located under the sub-directories of the example/ directory of<br />

your installation.<br />

In the bin/ directory is the post script, a command line tool which can be used to index different types of<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!