Running a simple search

Using the Solr Admin query form.

To search the database, experienced users run Solr HTTP API queries in a browser or on the command line using the curl utility. You can also use the Solr Admin query form. Using the query form has some advantages for those new to Solr. The form contains text entry boxes for constructing a query and can provide query debugging information.

Procedure

To get started searching the nhanes database:

  1. In the Solr Admin, click Query.
    A query form appears.



    Notice that the form has a number of query defaults set up, including the select URL in Request-Handler and *:* in the main query parameter entry box--q.

  2. Scroll down the form and click Execute Query.
    The defaults select all the fields in all the documents, starting with row 0 and ending at row 10. The wt parameter specifies the output format, xml by default. The output looks something like this: