Hi ,

sorry for delay..  I got cold and still tears in my eyes ..  These viruses
getting stronger each day...

what I have done is in solrconfig.xml :

<filterCache class="solr.FastLRUCache"
                 size="512"
                 initialSize="512"
                 autowarmCount="50"/>
    <queryResultCache class="solr.FastLRUCache"
                     size="512"
                     initialSize="512"
                     autowarmCount="200"/>
    <documentCache class="solr.FastLRUCache"
                   size="10000"
                   initialSize="10000"
                   autowarmCount="0"/>
    <enableLazyFieldLoading>true</enableLazyFieldLoading>
   <queryResultWindowSize>20</queryResultWindowSize>
   <queryResultMaxDocsCached>1000</queryResultMaxDocsCached>
    <listener event="newSearcher" class="solr.QuerySenderListener">
      <arr name="queries">
        <!--
           <lst><str name="q">solr</str><str name="sort">price
asc</str></lst>
           <lst><str name="q">rocks</str><str name="sort">weight
asc</str></lst>
          -->
      </arr>
    </listener>
    <listener event="firstSearcher" class="solr.QuerySenderListener">
      <arr name="queries">
        <lst>
          <str name="q">static firstSearcher warming in solrconfig.xml</str>
        </lst>
      </arr>
    </listener>
    <useColdSearcher>false</useColdSearcher>
    <maxWarmingSearchers>2</maxWarmingSearchers>
  </query>

  <requestDispatcher handleSelect="true" >
    <requestParsers enableRemoteStreaming="true"
                    multipartUploadLimitInKB="2048000" />
        <!--<httpCaching never304="true" /> -->
        <httpCaching lastModifiedFrom="openTime" etagSeed="solr" />
  </requestDispatcher>


I am not using any thirdparty http caching and all queries tested through
solradmin 7124 port directly.

when I quoto   <!--<httpCaching never304="true" /> -->  solr caching the
query results and using it as an httpcache.  And queries getting very  fast
 below 10 ms.  Qtime in the solr response xml still the same Qtime before
cached as below..  When I look the solr log there is no hits but solr
responding normally.

ie:

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">158</int>
<lst name="params">
<str name="explainOther"/>
<str name="fl">id,title,url,mrank</str>
<str name="indent">on</str>
<str name="start">0</str>
<str name="q">"fffff" +ffff -fff</str>
<str name="hl.fl"/>
<str name="qt"/>
<str name="wt"/>
<str name="fq"/>
<str name="version">2.2</str>
<str name="rows">10</str>
</lst>
</lst>
<result name="response" numFound="4575" start="0">

so this is why I confused and asked a way . May be from the cold..

thanks


On Mon, Oct 10, 2011 at 1:07 PM, Tor Henning Ueland
<tor.henn...@gmail.com>wrote:

> On Sat, Oct 1, 2011 at 11:55 PM, Lord Khan Han <khanuniver...@gmail.com>
> wrote:
> > Is there anyway to get correct Qtime when we use http caching ? I think
> Solr
> > caching also the Qtime so giving the the same Qtime in response what ever
> > takes it to finish ..  How I can set Qtime correcly from solr when I use
> > http caching On.
>
> Don`t bother with it at Varnish/Squid level, just time how long it
> takes to perform a query() in your application.
>
> --
> Mvh
> Tor Henning Ueland
>

Reply via email to