Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 21729 invoked from network); 28 Jan 2011 20:39:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 20:39:41 -0000 Received: (qmail 8959 invoked by uid 500); 28 Jan 2011 20:39:38 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 8841 invoked by uid 500); 28 Jan 2011 20:39:38 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 8833 invoked by uid 99); 28 Jan 2011 20:39:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 20:39:38 +0000 X-ASF-Spam-Status: No, hits=-2.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,RCVD_IN_RP_SAFE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prvs=10095241c6=cbennett@job.com designates 208.17.205.100 as permitted sender) Received: from [208.17.205.100] (HELO mailcenter.job.com) (208.17.205.100) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 20:39:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=job.com; s=MDaemon; t=1296247150; x=1296851950; q=dns/txt; h=Received: Reply-To:From:To:References:In-Reply-To:Subject:Date: Organization:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-language:thread-index: Accreditor; bh=B6cMnAWGAmaD+BfRUmKshLNBpr9fJVKLVWRMbLgNUUg=; b=l q3PUsN1VSl2AfhjRCuLLYEYmgdmzeFfcA9xS4sqVGKvdEcZQuGlTPKaR9bVm6CbD VilmqAHLF0uve89kM4Zz5OMkNKtbky0uSGCuqPO6kqWigHqSgJC7LYPNWOUBe3az 0o6t69d8y0wJ00Za3wgcz0rpsWVd4s81iF5GNRjhQ8= X-MDAV-Processed: mailcenter.vawebprop.com, Fri, 28 Jan 2011 15:39:10 -0500 Received: from vwpwkstn102 by mailcenter.vawebprop.com (MDaemon PRO v11.0.3) with ESMTP id 40-md50000323416.msg for ; Fri, 28 Jan 2011 15:39:10 -0500 X-Spam-Processed: mailcenter.vawebprop.com, Fri, 28 Jan 2011 15:39:10 -0500 (not processed: message from trusted or authenticated source) X-Authenticated-Sender: cbennett@job.com X-HashCash: 1:20:110128:md50000323416::sNHWNmhFSQENf8M8:00003zpO X-Return-Path: prvs=10095241c6=cbennett@job.com X-Envelope-From: cbennett@job.com X-MDaemon-Deliver-To: solr-user@lucene.apache.org Reply-To: From: To: References: <4D431768.9020605@deri.org> <009401cbbf2b$17d539e0$477fada0$@com> In-Reply-To: <009401cbbf2b$17d539e0$477fada0$@com> Subject: RE: Filter Query, Filter Cache and Hit Ratio Date: Fri, 28 Jan 2011 15:39:03 -0500 Organization: Job.Com Message-ID: <009501cbbf2b$667d7cb0$33787610$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-language: en-us thread-index: Acu/IMG2viH5DLJyRmaHkz4qo0Mm6gACRdogAABe8pA= Accreditor: Habeas X-Habeas-Report: report use of this mark in spam to http://www.habeas.com/report/ Ooops, I meant NOW/DAY > -----Original Message----- > From: cbennett@job.com [mailto:cbennett@job.com] > Sent: Friday, January 28, 2011 3:37 PM > To: solr-user@lucene.apache.org > Subject: RE: Filter Query, Filter Cache and Hit Ratio > > Hi, > > You've used NOW in the range query which will give a date/time accurate > to > the millisecond, try using NOW\DAY > > Colin. > > > -----Original Message----- > > From: Renaud Delbru [mailto:renaud.delbru@deri.org] > > Sent: Friday, January 28, 2011 2:22 PM > > To: solr-user@lucene.apache.org > > Subject: Filter Query, Filter Cache and Hit Ratio > > > > Hi, > > > > I am looking for some more information on how the filter cache is > > working, and how the hit are incremented. > > > > We are using filter queries for certain predefined value, such as the > > timestamp:[2011-01-21T00:00:00Z+TO+NOW] (which is the current day). > > From > > what I understand from the documentation: > > "the filter cache stores the results of any filter queries ("fq" > > parameters) that Solr is explicitly asked to execute. (Each filter is > > executed and cached separately. When it's time to use them to limit > the > > number of results returned by a query, this is done using set > > intersections.)" > > So, we were imagining that is two consecutive queries (as the one > > above) > > was using the same timestamp filter query, the second query will take > > advantage of the filter cache, and we would see the number of hits > > increasing (hit on the cached timestamp filter query) . However, this > > is > > not the case, the number of hits on the filter cache does not > increase > > and stays very low. Is it normal ? > > > > INFO: [] webapp=/siren path=/select > > > params={wt=javabin&rows=0&version=2&fl=id,score&start=0&q=*:*&isShard=t > > rue&fq=timestamp:[2011-01- > > 21T00:00:00Z+TO+NOW]&fq=domain:my.wordpress.com&fsv=true} > > hits=0 status=0 QTime=139 > > INFO: [] webapp=/siren path=/select > > > params={wt=javabin&rows=0&version=2&fl=id,score&start=0&q=*:*&isShard=t > > rue&fq=timestamp:[2011-01- > > 21T00:00:00Z+TO+NOW]&fq=domain:syours.wordpress.com&fsv=true} > > hits=0 status=0 QTime=138 > > > > -- > > Renaud Delbru > > >