11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

http://localhost:8983/solr/gettingstarted/select?q=price:0%20TO%20400&fl=id,name,p<br />

rice&facet=true&facet.field=cat&fq=cat:software<br />

A Quick Overview<br />

Having had some fun with <strong>Solr</strong>, you will now learn about all the cool things it can do.<br />

Here is a example of how <strong>Solr</strong> might be integrated into an application:<br />

In the scenario above, <strong>Solr</strong> runs along side other server applications. For example, an online store application<br />

would provide a user interface, a shopping cart, and a way to make purchases for end users; while an inventory<br />

management application would allow store employees to edit product information. The product metadata would<br />

be kept in some kind of database, as well as in <strong>Solr</strong>.<br />

<strong>Solr</strong> makes it easy to add the capability to search through the online store through the following steps:<br />

1.<br />

2.<br />

3.<br />

4.<br />

Define a schema. The schema tells <strong>Solr</strong> about the contents of documents it will be indexing. In the online<br />

store example, the schema would define fields for the product name, description, price, manufacturer, and<br />

so on. <strong>Solr</strong>'s schema is powerful and flexible and allows you to tailor <strong>Solr</strong>'s behavior to your application.<br />

See Documents, Fields, and Schema Design for all the details.<br />

Deploy <strong>Solr</strong> to your application server.<br />

Feed <strong>Solr</strong> the document for which your users will search.<br />

Expose search functionality in your application.<br />

Because <strong>Solr</strong> is based on open standards, it is highly extensible. <strong>Solr</strong> queries are RESTful, which means, in<br />

essence, that a query is a simple HTTP request URL and the response is a structured document: mainly XML,<br />

but it could also be JSON, CSV, or some other format. This means that a wide variety of clients will be able to<br />

use <strong>Solr</strong>, from other web applications to browser clients, rich client applications, and mobile devices. Any<br />

platform capable of HTTP can talk to <strong>Solr</strong>. See Client APIs for details on client APIs.<br />

<strong>Solr</strong> is based on the <strong>Apache</strong> Lucene project, a high-performance, full-featured search engine. <strong>Solr</strong> offers support<br />

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

12

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

Saved successfully!

Ooh no, something went wrong!