Re: programmatically disable/enable solr queryResultCache...

2014-02-26 Thread Senthilnathan Vijayaraja
Shalin, Great,Thanks for the clear explanation. let me try to make my scoring function as part of QueryResultKey. Thanks & Regards, Senthilnathan V On Wed, Feb 26, 2014 at 5:40 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > The problem here is that your custom scoring function

Re: programmatically disable/enable solr queryResultCache...

2014-02-26 Thread Shalin Shekhar Mangar
The problem here is that your custom scoring function (is that a SearchComponent?) is not part of a query. The query cache is defined as SolrCache where the QueryResultKey contains Query, Sort, SortField[] and filters=List. So your custom scoring function either needs to be present in the QueryResu

Re: programmatically disable/enable solr queryResultCache...

2014-02-25 Thread Senthilnathan Vijayaraja
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 th

Re: programmatically disable/enable solr queryResultCache...

2014-02-25 Thread Erick Erickson
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