besides fieldCache, there is also a cache for termInfo. I don't know how to turn it off in both lucene and solr.
codes in TermInfosReader /** Returns the TermInfo for a Term in the set, or null. */ TermInfo get(Term term) throws IOException { return get(term, true); } /** Returns the TermInfo for a Term in the set, or null. */ private TermInfo get(Term term, boolean useCache) throws IOException 2011/2/11 Stijn Vanhoorelbeke <stijn.vanhoorelb...@gmail.com>: > Hi, > > You can comment out all sections in solrconfig.xml pointing to a cache. > However, there is a cache deep in Lucence - the fieldcache - that can't be > commented out. This cache will always jump into the picture.... > > If I need to do such things, I restart the whole tomcat6 server to flush ALL > caches. > > 2011/2/11 Li Li <fancye...@gmail.com> > >> do you mean queryResultCache? you can comment related paragraph in >> solrconfig.xml >> see http://wiki.apache.org/solr/SolrCaching >> >> 2011/2/8 Isan Fulia <isan.fu...@germinait.com>: >> > Hi, >> > My solrConfig file looks like >> > >> > <config> >> > <updateHandler class="solr.DirectUpdateHandler2" /> >> > >> > <requestDispatcher handleSelect="true" > >> > <requestParsers enableRemoteStreaming="false" >> > multipartUploadLimitInKB="2048" /> >> > </requestDispatcher> >> > >> > <requestHandler name="standard" class="solr.StandardRequestHandler" >> > default="true" /> >> > <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" /> >> > <requestHandler name="/admin/" >> > class="org.apache.solr.handler.admin.AdminHandlers" /> >> > >> > >> > <queryResponseWriter name="xslt" >> > class="org.apache.solr.request.XSLTResponseWriter"> >> > </queryResponseWriter> >> > <!--config for the admin interface --> >> > <admin> >> > <defaultQuery>*:*</defaultQuery> >> > </admin> >> > </config> >> > >> > >> > EveryTime I fire the same query so as to compare the results for >> different >> > configurations , the query result time is getting reduced because of >> > caching. >> > So I want to turn off the cahing or clear the ache before i fire the >> same >> > query . >> > Does anyone know how to do it. >> > >> > >> > -- >> > Thanks & Regards, >> > Isan Fulia. >> > >> >