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.

Query Screen<br />

You can use the Query screen to submit a search query to a <strong>Solr</strong> collection and analyze the results. In the<br />

example in the screenshot, a query has been submitted, and the screen shows the query results sent to the<br />

browser as JSON.<br />

In this example a query for genre:Fantasy was sent to a "films" collection. Defaults were used for all other<br />

options in the form, which are explained briefly in the table below, and covered in detail in later parts of this<br />

<strong>Guide</strong>.<br />

The response is shown to the right of the form. Requests to <strong>Solr</strong> are simply HTTP requests, and the query<br />

submitted is shown in light type above the results; if you click on this it will open a new browser window with just<br />

this request and response (without the rest of the <strong>Solr</strong> Admin UI). The rest of the response is shown in JSON,<br />

which is part of the request (see the wt=json part at the end).<br />

The response has at least two sections, but may have several more depending on the options chosen. The two<br />

sections it always has are the responseHeader and the response. The responseHeader includes the status<br />

of the search ( status), the processing time ( QTime), and the parameters ( params) that were used to process<br />

the query.<br />

The response includes the documents that matched the query, in doc sub-sections. The fields return depend<br />

on the parameters of the query (and the defaults of the request handler used). The number of results is also<br />

included in this section.<br />

This screen allows you to experiment with different query options, and inspect how your documents were<br />

indexed. The query parameters available on the form are some basic options that most users want to have<br />

available, but there are dozens more available which could be simply added to the basic request by hand (if<br />

opened in a browser). The table below explains the parameters available:<br />

Field<br />

Description<br />

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

40

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

Saved successfully!

Ooh no, something went wrong!