From the day Solr 3.4 was released its users got a nice feature which allows if the results of a filter query or query should be placed in cache. In addition to that we got the possibility to set filter query cost. Let’s see how to use those features.
During my everyday work, I have seen many repeated queries, to Solr, with only one filter difference. When I asked why – I got anserws that it was necessary to get the faceting results for various filters. If you are using Solr version 1.4 or later, my suggestion is to use local params – what is it and how to use – this post will attempt to answer both questions.