setting cache to false is, as far as I know, only possible on filter queries.
Do note that the queryResultCache is very cheap. All it is is a map where the key is the query and the value is int[windowsize] where windowsize is the value in solrconfig.xml (queryResultWindowSize). It's primarily used for paging, so I don't think that you would be able to even measure the difference if it was able to be disabled. Best Erick On Wed, Nov 28, 2012 at 4:20 PM, richardg <richa...@dvdempire.com> wrote: > We are aware of adding cache=false to our queries but everything we see > seems > to reference filterCache. We weren't sure if this parameter would work the > same way with the queryResultsCache. Here is an example of a query we > don't > want to cache(NOTE: I'm just the administrator, I'm not so familiar w/ > query > construction): > > Currently it is constructed as: &fq=doc_type:%22Cast%22&q=id:48880 > > We want to rewrite as: &q=*:*&fq={!cache=false}(doc_type:"Cast" AND > id:"48880") > > As such I believe it would not cache the filter, would this also not cache > the queryResult or would it need to be written another way: > > > &q={!cache=false}(*:*)&fq={!cache=false}(doc_type:"Cast" AND id:"48880") > > Or is it not possible to exclude thing from the queryCache? > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Excluding-caching-of-queryresult-tp4023105.html > Sent from the Solr - User mailing list archive at Nabble.com. >