Posted on 11-20-2013
I was going through the Free Law Project Court Opinion API today, playing with the API and data, while developing some server and client side tooling. All the API endpoints are pretty consistence because they used their Django model and the Tastypie framework to generate most of the API.
There is one endpoint that is radically different from the rest of the opinion API: the /search endpoint. The Free Law Project used Apache Solr to generate the /search endpoint results and instead of directly hitting just the database for information it utilized Solr index to do the heavy lifting.
Using Solr opens up a whole world of search by introducing common concepts like AND, OR, NOT, fielded queries, wildcards, fuzzy searches and much more when it comes to searching for court opinions.
While the on-boarding of Solr newbies to an endpoint like this takes some education, and the opinion API /search endpoint docs could use a little more polishing to make it easier to start using, but the concept of a Solr driven endpoint is still very interesting.
Using Solr like this might not work for all API providers, but for some who are heavily using data stores that include document repositories as well, it might be a good idea.
While I have advocated for using Solr to generate an API before, this is the first time I've seen it bundled alongside another API offering so seamlessly, just to drive the search endoint. I'll be keeping an eye out for others during my regular monitoring.
comments powered by Disqus
Winning in the API Economy
|Download as PDF|
Latest Blog Posts
- Reworking My API 101 Content: Consuming APIs
- I Need Help To Make Sure The Dept. of Agriculture Leads With APIs In Their Parks and Recreation RFP
- What Is The Biggest Challenge For Fraud Detection API SiftScience?
- Reworking My API 101 Content: Providing APIs
- What I Spent Ada Lovelace Day Working On
- An Outside-In Approach To Jumpstarting An API Effort At The University of Oklahoma
- Exposing Dictionaries From My API Collections
- Launching 25 APIs To Assemble A Single Poem For Each Day
- Exploring The Possibilities of Being An API Broker
- The Publicly Available Private Target APIs