Erick, Thanks for the response. Kindly have a look at my sample query,
select?fl=city,$score&q=*:*&fq={!lucene q.op=OR df=city v=$cit}&cit=Chennai& *sort=$score desc& score=norm($la,value,10)& la=8 &b=1&c=2*here, score= norm($la,value,10), norm is a custom function *,if I change la then the $score will change.* first time it work fine but if I am changing la alone and firing the query again the result remains in the same order as first query result.Which means sorting is not happening even the score is different.But If I am changing the cit=Chennai to cit=someCity then I am getting result in proper order,means sorting works fine. At any rate, queryResultCache is unlikely to impact much. All it is is *a map containing the query and the first few document IDs *(internal Lucene). which means query is the unique key and list of document ids are values mapped with that key.If I am not wrong, may I know how solr builds the unique keys based on the queries. Whether it builds the key based on only solr common query parameters or it will include all the parameters supplied by user as part of query(for e.g la=8&b=1&c=2 ). any clue? Thanks & Regards, Senthilnathan V On Tue, Feb 25, 2014 at 8:00 PM, Erick Erickson <erickerick...@gmail.com>wrote: > This seems like an XY problem, you're asking for > specifics on doing something without any indication > _why_ you think this would help. Nor are you explaining > what the problem you're having is in the first place. > > At any rate, queryResultCache is unlikely to impact > much. All it is is a map containing the query and > the first few document IDs (internal Lucene). See > <queryResultWindowSize> in solrconfig.xml. It is > quite light-weight, it does NOT store the entire > result set, nor even the contents of the documents. > > Best > Erick > > > On Tue, Feb 25, 2014 at 6:07 AM, Senthilnathan Vijayaraja < > senthilnat...@8kmiles.com> wrote: > > > is there any way programmatically disable/enable solr queryResultCache? > > > > I am using SolrJ. > > > > > > Thanks & Regards, > > Senthilnathan V > > >