lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter A. Kirk" ...@alpha-solutions.dk>
Subject RE: query log
Date Mon, 21 Dec 2009 00:24:26 GMT
Hi, thanks for the reply.

Yes, at the moment the queries are coming from a browser (internet explorer) - actually I'm
testing with the little webapp that comes with the Solr download.

Where is the "HTTP 304" feature enabled and disabled? Or how can I at least ensure that my
logger always gets the request, however Solr responds?


Med venlig hilsen / Best regards

Peter Kirk
E-mail: mailto:pk@alpha-solutions.dk


-----Original Message-----
From: Erik Hatcher [mailto:erik.hatcher@gmail.com] 
Sent: 21. december 2009 12:26
To: solr-user@lucene.apache.org
Subject: Re: query log

Where are the queries coming from?  A browser?  I bet you've got the  
HTTP 304 feature enabled and your client is sending etag/last-modified  
headers, causing Solr to respond with a 304 response and short circuit.

	Erik

On Dec 20, 2009, at 5:46 PM, Peter A. Kirk wrote:

> Hi, I'd like to write a "Component" that can write to a simple log  
> with query data for every submitted query.
>
> So far I have written a simple Component and configured it to be  
> called in the "standard" requestHandler. However, I have noticed  
> that it is not always called. It's as if some queries are cached -  
> and the standard request handler is not called at all. How do I  
> write EVERY query request to my log?
> 	
>
>
> <searchComponent name="OccurrenceLogger"
> class="my.handler.component.TestFileLogger" />
>
> <requestHandler name="standard" class="solr.SearchHandler"  
> default="true">
>
>    <arr name="first-components">
>      <str>OccurrenceLogger</str>
>    </arr>
>
>
>
>
> Med venlig hilsen / Best regards
>
> Peter Kirk
> E-mail: mailto:pk@alpha-solutions.dk
>


Mime
View raw message