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
- The New Github Developer Program and Integrations Page
- I Have A Valuable API Resource, What Now?
- A Better Understanding Of Government APIs And Their Consumers Before Considering Charging For Use
- So You Wanna Do a Spreadsheet or Database To API Startup
- Jumpstarting the Automobile API Conversation With Carvoyant
- Some Of The Common Building Blocks of Payment APIs
- API Badging and Credentialing To Demonstrate Skills
- Finding Good API Developer Talent Is Hard
- Common Building Blocks Of API Design
- APIs Coming Out Of The Netherlands