Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 95611 invoked from network); 8 Feb 2011 02:16:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2011 02:16:08 -0000 Received: (qmail 55425 invoked by uid 500); 8 Feb 2011 02:16:07 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 54888 invoked by uid 500); 8 Feb 2011 02:16:07 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 54620 invoked by uid 99); 8 Feb 2011 02:16:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Feb 2011 02:16:06 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [98.139.91.234] (HELO nm28-vm0.bullet.mail.sp2.yahoo.com) (98.139.91.234) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 08 Feb 2011 02:15:57 +0000 Received: from [98.139.91.66] by nm28.bullet.mail.sp2.yahoo.com with NNFMP; 08 Feb 2011 02:15:34 -0000 Received: from [98.139.91.30] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 08 Feb 2011 02:15:34 -0000 Received: from [127.0.0.1] by omp1030.mail.sp2.yahoo.com with NNFMP; 08 Feb 2011 02:15:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 337479.67381.bm@omp1030.mail.sp2.yahoo.com Received: (qmail 31051 invoked by uid 60001); 8 Feb 2011 02:15:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1297131334; bh=f0R40goYs5tGhKzAR8N4mJUkVU/cfXCsc2plSCD+UJE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=zGD0Wcx4wH/ChjkeamJorFOjkJFelm56XBQ4k1yVFVCWkXBCRlc4IRLgiprtGKD9/SP+Y7tvgkR1jhT2KIGCKpqLCXpeic3hLhb8UZOO5Wkp71otjgL+jXLcoVB/8caSUcmIqfYp62xWbzIo0cksQNGUr3oqM39ONSRAmHfSM98= Message-ID: <182260.30248.qm@web1115.biz.mail.sk1.yahoo.com> X-YMail-OSG: TmyZu2AVM1nk82iHbszPFa3XwUIl5a96N4u3fLEDojOlTkQ bJ1mvEa.Z7_xxtqPhj7yCexoT_otBC42uDj.pa0aJ3odAN9Qn0XZp5YaRser vxFSgysnUctVsYqqMznl0kLzu3SsWASOyebDmXU4FW9xVdloJMPd0CYNBv5z MWzPIHyOn1WmIs7FiRPUvyPlCfDlt_F4kPgyw0G0HBf3pxJTUT0ztu97Vg6b qc7Ygr_STNWSKgD4NPbWHWYa_xrBDzPMaZ_20ufUNkDzh0u8FnQi.a2xVWUZ EahfKZeE.wiUQFHVFINRifXnTT.VNOCnB0v6OF0r1bevdz6DVUCY4uXose9R _KR.hfu6hNekDeLM- Received: from [38.99.42.113] by web1115.biz.mail.sk1.yahoo.com via HTTP; Mon, 07 Feb 2011 18:15:33 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.108.291010 References: Date: Mon, 7 Feb 2011 18:15:33 -0800 (PST) From: Vijay Raj Subject: Re: Keyword - search statistics To: dev@lucene.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-176481529-1297131333=:30248" X-Virus-Checked: Checked by ClamAV on apache.org --0-176481529-1297131333=:30248 Content-Type: text/plain; charset=us-ascii You can have a custom SearchComponent and configure a listener to the same. Checkout example/solr/config/solrconfig.xml , regarding configuring custom query components , before and after the default list of components, that can help provide some of this 'aspect' behavior. myFirstComponentName More details, about SearchComponent, available in the javadoc here: http://bit.ly/giz0b1 . Override the method - prepare(ResponseBuilder rb) , and do a count , based on the "q" / other parameters that you get access to , from the ResponseBuilder. Be aware that this gets in the way of every search request that hits the solr server. So - you need to be careful about how this is persisted (how frequently to the datastore etc.) , without being intrusive and adding to the query time. -- Vijay > >From: Selvaraj Varadharajan >To: dev@lucene.apache.org >Sent: Mon, February 7, 2011 5:25:18 PM >Subject: Re: Keyword - search statistics > >Thanks Eric. >What about having another core and interpret the request calls and pool it in >that core.. ? >Do we see any performance hit form your point of view. > >-Selvaraj > > > >On Mon, Feb 7, 2011 at 3:31 PM, Erick Erickson wrote: > >Solr doesn't keep "meta data", so if you're asking for some kind of search >>logging your app has to provide that... >> >> >>Best >>Erick >> >> >> >>On Sun, Feb 6, 2011 at 10:46 PM, Selvaraj Varadharajan >>wrote: >> >> >>>Hi >>> >>> Is there any way i can get 'no of times' a key word searched in SOLR ? >>> >>> >>>Here is my solr package details >>> >>> Solr Specification Version: 1.4.0 >>> Solr Implementation Version: 1.4.0 833479 - grantingersoll - 2009-11-06 >>>12:33:40 >>> Lucene Specification Version: 2.9.1 >>> Lucene Implementation Version: 2.9.1 832363 - 2009-11-03 04:37:25 >>> >>>-Selvaraj >>> >> > --0-176481529-1297131333=:30248 Content-Type: text/html; charset=us-ascii
You can have a custom SearchComponent and configure a listener to the same.  Checkout example/solr/config/solrconfig.xml , regarding configuring custom query components , before and after the default list of components, that can help provide some of this 'aspect' behavior. 

    <arr name="first-components">
      <str>myFirstComponentName</str>
    </arr>
    
More details, about SearchComponent,  available in the javadoc here: http://bit.ly/giz0b1

Override the method  - prepare(ResponseBuilder rb)  , and do a count , based on the "q" / other parameters that you get access to , from the ResponseBuilder.  

Be aware that this gets in the way of every search request that hits the solr server. So - you need to be careful about how this is persisted (how frequently to the datastore etc.) , without being intrusive and adding to the query time. 
 
--
  Vijay


From: Selvaraj Varadharajan <selvaraj.v@gmail.com>
To: dev@lucene.apache.org
Sent: Mon, February 7, 2011 5:25:18 PM
Subject: Re: Keyword - search statistics

Thanks Eric.
What about having another core and interpret the request calls and pool it in that core.. ?
Do we see any performance hit form your point of view.

-Selvaraj


On Mon, Feb 7, 2011 at 3:31 PM, Erick Erickson <erickerickson@gmail.com> wrote:
Solr doesn't keep "meta data", so if you're asking for some kind of search
logging your app has to provide that...

Best
Erick


On Sun, Feb 6, 2011 at 10:46 PM, Selvaraj Varadharajan <selvaraj.v@gmail.com> wrote:
 
Hi 
 
   Is there any way i can get 'no of times' a key word searched in SOLR ?

  
Here is my solr package details

    Solr Specification Version: 1.4.0
    Solr Implementation Version: 1.4.0 833479 - grantingersoll - 2009-11-06 12:33:40
    Lucene Specification Version: 2.9.1
    Lucene Implementation Version: 2.9.1 832363 - 2009-11-03 04:37:25

-Selvaraj


--0-176481529-1297131333=:30248--