Child pages
  • Solr Proxy API User Guide

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here are some usage examples:

To retrieve the list of volumeIDs for those volumes which have authors with "eliot" in their names, point your browser to:
http://chinkapin.pti.indiana.edu:9994/solr/meta/select/?q=author:eliot

Likewise, to retrieve the list of volumeIDs for those volumes which have titles containing the word "may", I'd point my browser to:
http://chinkapin.pti.indiana.edu:9994/solr/meta/select/?q=title:may 

etc.

To retrieve the list of volumeIDs for those volumes which are in the Spanish language, point your browser to:
http://chinkapin.pti.indiana.edu:9994/solr/meta/select/?q=language:Spanish 

Notes:

  1. Case matters. 
  2. If you do not priorly know the value that you need to search as for the value in your query, then you can always try to look at the results as a facet. (There is no limit to the number of results that can be returned, and so this should be used cautiously.) In the case of the query below (an example query that will be useful if you did  not priorly know what is the controlled vocabulary for denoting Spanish language books, i.e., if you did not know that you would need to search for spanish in the language field with the word "Spanish" which has the "S" capitalized as shown in the above example), the number of rows has been set to 0, so that you only get the facet counts when you execute this query:

Basic Queries

All the basic queries are allowed. "Update" operations are banned. Detailed instructions can be found at  http://wiki.apache.org/solr/SolrQuerySyntax and http://wiki.apache.org/solr/CommonQueryParameters.

Because HTRC have very large index files, distributed search is used to utilize more system resource. Previously "qt=sharding" needed to be appended to the REST call to make sure that the query was sent over to all shards. But now users do not need to worry about that because the default "qt" is "sharding". Users can also specify explicitly what query type they want to overwrite the default "qt" parameter. What follows are instructions for  the most frequently used queries; these queries are sufficient for most uses:

...