You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com> on 2008/11/17 11:48:33 UTC

Re: Need help with SolrIndexSearcher & CoreContainer

Look at the class SolrDispatchFilter which explains how exactly it is done.

Ensure that you do proper ref decrements after using core/indexsearcher


On Mon, Nov 17, 2008 at 3:55 PM, Kraus, Ralf | pixelhouse GmbH
<rk...@pixelhouse.de> wrote:
> Hi,
>>
>> After 5-6 searches I run out of memory :-(
>>
>> Examples:
>>
>>      String homeDir  = "/var/lib/tomcat5.5/webapps/solr";
>>      File configFile = new File( homeDir, "solr.xml" );
>>            CoreContainer myCoreContainer = new CoreContainer( homeDir,
>> configFile );
>>      mySolrCore = myCoreContainer.getCore("core_de");
>>            RefCounted<SolrIndexSearcher> temp_search =
>> mySolrCore.getSearcher();
>>      SolrIndexSearcher searcher = temp_search.get();
>
> No one ever worked directly with CoreContainer and SolrIndexSearcher ?
>
> Greets -Ralf-
>



-- 
--Noble Paul