thanks tomas .. can we set querywindowsize of particular query through url ? say, i want only a particular set of query's result to be cached and not other queries . is it possible to control this query cache results and window size for each query separately ?
2011/8/19 Tomás Fernández Löbbe <tomasflo...@gmail.com> > From my understanding, seeing the cache as a set of key-value pairs, this > cache has the query as key and the list of IDs resulting from the query as > values. When the exact same query is issued, it will be found as key in > this > cache, and Solr will already have the list of IDs that match it. > If you set the size of this cache to 50, that means that Solr will keep in > memory the last 50 queries with their list of resulting document IDs. > > The number of IDs per query can be configured with the parameter > queryResultWindowSize > http://wiki.apache.org/solr/SolrCaching#queryResultWindowSize > > On Fri, Aug 19, 2011 at 10:34 AM, jame vaalet <jamevaa...@gmail.com> > wrote: > > > wiki says *"size > > > > The maximum number of entries in the cache." > > andqueryResultCache > > > > This cache stores ordered sets of document IDs — the top N results of a > > query ordered by some criteria. > > * > > > > doesn't it mean number of document ids rather than number of queries ? > > > > > > > > > > > > 2011/8/19 Tomás Fernández Löbbe <tomasflo...@gmail.com> > > > > > Hi Jame, the size for the queryResultCache is the number of queries > that > > > will fit into this cache. AutowarmCount is the number of queries that > are > > > going to be copyed from the old cache to the new cache when a commit > > > occurrs > > > (actually, the queries are going to be executed again agains the new > > > IndexSearcher, as the results for them may have changed on the new > > Index). > > > initial size is the initial size of the array, it will start to grow > from > > > that size up to "size". You may want to see this page of the wiki: > > > http://wiki.apache.org/solr/SolrCaching > > > > > > Regards, > > > > > > Tomás > > > On Fri, Aug 19, 2011 at 8:39 AM, jame vaalet <jamevaa...@gmail.com> > > wrote: > > > > > > > hi, > > > > i understand that queryResultCache tag in solrconfig is the one which > > > > determines the cache size of SOLR in jvm. > > > > > > > > <queryResultCache class="*solr.LRUCache*" > > > > size="*${queryResultCacheSize:0}*"initialSize > > > > ="*${queryResultCacheInitialSize:0}*" autowarmCount="* > > > > ${queryResultCacheRows:0}*" /> > > > > > > > > > > > > out of the different attributes what is size? Is it the amount of > > memory > > > > reserved in bytes ? or number of doc ids cached ? or is it the number > > of > > > > queries it will cache? > > > > > > > > similarly wat is initial size and autowarm depicted in? > > > > > > > > can some please reply ... > > > > > > > > > > > > > > > -- > > > > -JAME > > > -- -JAME