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:p...@alpha-solutions.dk