Solr supports having the browser cache the results. If your client code
supports this caching, or your code goes through an HTTP cacher like Squid,
it could return a cached page for a query. Is this what you mean?

On Tue, Oct 4, 2011 at 4:55 PM, Nicholas Chase <nch...@earthlink.net> wrote:

> Seems to me what you're asking is how to have an accurate query time when
> you're getting a response that's been cached by an HTTP cache.  This might
> be from the browser, or from a proxy, or from something else, but it's not
> from Solr.  The reason that the QTime doesn't change is because it's the
> entire response -- results, parameters, Qtime, and all -- that's cached.
>  Solr isn't making a new request; it doesn't even know that a request has
> been made.  So if you do 6 requests, and the last 5 come from the cache,
> Solr has done only one request, with one Qtime.
>
> So it sounds to me that you are looking for the RESPONSE time, which would
> be different from the QTime, and would, I suppose, come from your
> application, and not from Solr.
>
> ----  Nick
>
>
> On 10/4/2011 7:44 PM, Erick Erickson wrote:
>
>> Still doesn't make sense to me. There is no
>> Solr HTTP cache that I know of. There is a
>> queryResultCache. There is a filterCache.
>> There is a documentCache. There's may
>> even be custom cache implementations.
>> There's a fieldValueCache. There's
>> no http cache internal to Solr as far as I
>> can tell.
>>
>> If you're asking if documents returned from
>> the queryResultCache have QTimes that
>> reflect the actual time spent (near 0), I'm
>> pretty sure the answer is "yes".
>>
>> If this doesn't answer your question, please
>> take the time to formulate a complete question.
>> It'll get you your answers quicker than multiple
>> twitter-style exchanges.
>>
>> Best
>> Erick
>>
>> On Tue, Oct 4, 2011 at 2:22 PM, Lord Khan Han<khanuniver...@gmail.com>
>>  wrote:
>>
>>> I just want to be sure..  because its solr internal HTTP cache.. not an
>>> outside httpcacher
>>>
>>> On Tue, Oct 4, 2011 at 5:39 PM, Erick 
>>> Erickson<erickerickson@gmail.**com<erickerick...@gmail.com>
>>> >wrote:
>>>
>>>  But if the HTTP cache is what's returning the value,
>>>> Solr never sees anything at all, right? So Solr
>>>> doesn't have a chance to do anything here.
>>>>
>>>> Best
>>>> Erick
>>>>
>>>> On Tue, Oct 4, 2011 at 9:24 AM, Lord Khan Han<khanuniver...@gmail.com>
>>>> wrote:
>>>>
>>>>> We are using this Qtime field and publishing in our front web. Even the
>>>>> httpCache decreasing the Qtime in reality, its still using the cached
>>>>> old
>>>>> Qtime value . We can use our internal qtime instead of Solr's but I
>>>>> just
>>>>> wonder is there any way to say Solr if its coming httpCache
>>>>>  re-calculate
>>>>> the Qtime.
>>>>>
>>>>> On Tue, Oct 4, 2011 at 4:16 AM, Erick Erickson<erickerickson@gmail.**
>>>>> com <erickerick...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>  Why do you want to? QTime is the time Solr
>>>>>> spends searching. The cached value will,
>>>>>> indeed, be from the query that filled
>>>>>> in the HTTP cache. But what are you doing
>>>>>> with that information that you want to "correct"
>>>>>> it?
>>>>>>
>>>>>> That said, I have no clue how you'd attempt to
>>>>>> do this.
>>>>>>
>>>>>> Best
>>>>>> Erick
>>>>>>
>>>>>> On Sat, Oct 1, 2011 at 5:55 PM, Lord Khan Han<khanuniver...@gmail.com
>>>>>> >
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> 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.
>>>>>>>
>>>>>>> thanks
>>>>>>>
>>>>>>>
>>


-- 
Lance Norskog
goks...@gmail.com

Reply via email to