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 "Kraus, Ralf | pixelhouse GmbH" <rk...@pixelhouse.de> on 2008/11/11 17:43:54 UTC
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-
Re: Problem with SolrJ and SolrIndexSearcher
Posted by "Kraus, Ralf | pixelhouse GmbH" <rk...@pixelhouse.de>.
Otis Gospodnetic schrieb:
> 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.
>
thx for you help...
Greets
Re: Problem with SolrJ and SolrIndexSearcher
Posted by Otis Gospodnetic <ot...@yahoo.com>.
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" <rk...@pixelhouse.de>
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-