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
<[EMAIL PROTECTED]> 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

Reply via email to