Fix the API results to return data

This was originally written before we had Solr storing data. Now that
it's storing data, we can see the mistakes and fix them, as this does.
Per #225.