On Jun 22, 2009, at 4:41 PM, Chris Hostetter wrote:


: Date: Mon, 8 Jun 2009 10:48:05 -0400
: From: Grant Ingersoll
: Subject: firstSearcher and newSearcher events
:
: Is there a way, in a request, to know if the query being sent is from a : firstSearcher event? For instance, I've noticed that if one has the shards

I don't think so ... the listeners just fire off hte requests using the
standard APIs.

you might be able to do something clever to "guess" that you are in a
firstSearcher or newSearcher event (i'm thinking about stuff like trying to fetch a searcher directly from the core and then comparing it to hte
searcher in the request) but i wouldn't rely on it.



I think I'm just going to add a parameter for those events that get passed along by those calls. Currently, those events will hang if the request has &shards= passed in.

-Grant

Reply via email to