Time for action – inspecting results using the stats and debug components
We have already seen some examples using the debug components while introducing the response format. Here we will start from that, and see it in action, introducing also the stats components:
- Suppose we want to debug a query in which we are searching for paintings that contain the term
cityfield, we can do it as follows:
>> curl -X GET 'http://localhost:8983/solr/paintings/select?q=city:vatican&rows=1&debug=true&wt=json&indent=true&json.nl=map'
- We can easily make some tests with the stats components as follows:
>> curl -X GET 'http://localhost:8983/solr/paintings/select?q=city:vatican&rows=0&stats=true&stats.field=width&stats.field=height&stats.facet=city&wt=json&indent=true&json.nl=map' ...