On Fri, Oct 24, 2008 at 8:21 AM, Jérôme Etévé <[EMAIL PROTECTED]> wrote:
> I though it'd be ok to trigger this the very first time the process
> method is called by doing something like that:
>
>  private boolean firstTime= true ;
>
>  public void process(ResponseBuilder rb) throws IOException {
>    if ( firstTime ){
>        firstTime = false ;
>        buildMyStuff(rb) ;
>    }
>  }
>
>
> The problem is that my method buildMyStuff hangs when calling
> rb.req.getCore().getSearcher() ; ,
> and I believe this is happening when the warm up queries are executed.

getSearcher() can wait for a searcher to be registered.
getNewestSearcher() can be used from places like inform(), but if you
are already in process()
then the one you should use is the one bound to the request (the
SolrQueryRequest object) - rb.req.getSearcher()

-Yonik

Reply via email to