Hi Ralf,

Your subject mentions SolrJ, but I don't see any SolrJ code in your email.
It looks as if you are messing with Solr's own code.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch




________________________________
From: "Kraus, Ralf | pixelhouse GmbH" <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Tuesday, November 11, 2008 11:43:54 AM
Subject: Problem with SolrJ and SolrIndexSearcher

Hi,

I want to use a SolrIndexSearcher for some special searches in my app...
I startup my Solr with two cores in it (core_de & core_uk).

But when I try this then my Solr Server generates a complete new cory instead of
using the existing one...

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();

Greets -Ralf-

Reply via email to