spacing image spacing image spacing image spacing image
The ITIS Logo The banner for the ITIS Web Service page spacing image
spacing image

ITIS Solr Web Service Examples

The code behind this page is open, modular and documented so that you can use it in your own applications. Note that for portability and due to constraints by outside databases, these examples use alerts (popup boxes) and spawn new Web browser tabs or windows for their output. You may have to unblock them in your Web browser application.


EXAMPLE 1: Search Expansion Using ITIS Synonyms

This application takes the taxon name that you input and sends it to the ITIS Solr web service to retrieve all synonyms. It then executes your search on the database that you choose, using all synonyms. The results can be quite dramatic. For example try Spinus tristis. NOTE: The search is case sensitive. Results will appear in a new browser tab or window.

Pick a database and type in a taxon name.


EXAMPLE 2: Show the Complete Hierarchy for a Taxon

This example shows how to get the full hierarchy for a taxon in ITIS and display its hierarchy in a table. Many websites use ITIS hierarchies on their pages.

Type in a taxon name.


EXAMPLE 3: Generate Solr URLs and Downloads

This example shows how to generate simple Solr URLs to download ITIS data in several formats and generate Solr calls for use in web pages. It is also quite a powerful way to do complex ITIS searches and get the output in a CSV file that can be saved and opened in a spreadsheet program. Please see the ITIS Solr Web Services page for documentation of each available field. Note that setting the maximum number of records returned to a very large number will slow or cause the search to fail. Larger searches can be conducted on just a few fields easily by limiting the returned fields with the "fl=" parameter. Please see The Solr Reference Guide for details. Your URL will appear below the search boxes.

Search for a value in field:

that:
(Optional)

that:
(Optional)

that:
Output format: Maximum records returned :
spacing image
spacing image spacing image spacing image spacing image