login / register
voyager
Home » Developer Guide » Query API » Solr REST Access

Solr REST Access

Subject to Change


The following APIs are subject to change with each software release for the purpose of incorporating improvements in system design, performance and new software features. Specifically field names (type information) are often modified to reflect changes in the types of information indexed. Developers using these APIs are welcome to contact support@voyagergis.com for more information.




Unless you need the advanced features, we recommended using the OpenSearch, RSS API

Voyager supports a REST based API which returns information as either a JSON or XML response.

The following query will return content from the index in JSON format

This query, same as above, returns information in XML format

Similar to RSS as documented above queries for spatial extent, filters and text constraints can be specified:

Text query:

?q=vegas

Spatial extent:

?bbox=-93.5156+-38.6719+42.8906+44.2969&bbox.mode=WITHIN

Filter:

?f.subtype=Raster

Additional parameters may also be specified.

Number of rows returned:

&rows=10

Specific field information (as opposed to all fields):

&fl=name,id

For example the following query will return all items matching the text query for “roads”, return only the “name” and “id” fields in JSON format limited to the first 10 records:

Once search results are returned you can query voyager for additional information such as an items thumbnail where a5594bd7ca6e257b is the ID of the item:

The ID can also be used to obtain a direct link to the detailed search result page:

This information is meant for reference purposes only. For more information on building Voyager based solutions please contact support@voyagergis.com


» Show in Whole Document