lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@heliosearch.com>
Subject Re: IndexSearcher not being closed
Date Thu, 20 Nov 2014 10:15:05 GMT
On Wed, Nov 19, 2014 at 8:37 AM, Priya Rodrigues <roddiedude@gmail.com> wrote:
> public void setContext( TransformContext context ) {
>     try {
>       IndexReader reader = qparser.getReq().getSearcher().getIndexReader();
> ->Refcount incremented

You can get a searcher from the request as many times as you like...
it's cached and the ref count is only incremented the first time (and
the corresponding decref is when the request object is closed).

-Yonik
http://heliosearch.org - native code faceting, facet functions,
sub-facets, off-heap data

Mime
View raw message