Re: Getting a document by primary key

2008-11-03 Thread Marc Sturlese
Hey your are right, I'm trying to migrate my app to solr. For the moment I am using solr for the searching part of the app but i am using my own lucene app for indexing, Shoud have posted in lucene forum for this trouble. Sorry about that. Iam trying to use termdocs properly now. Thanks for your a

Re: Getting a document by primary key

2008-11-03 Thread Yonik Seeley
On Mon, Nov 3, 2008 at 2:49 PM, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > Is this your code or something from Solr? > That indexSearcher = new IndexSearcher(path_index) ; is very suspicious > looking. Good point... if this is a Solr plugin, then get the SolrIndexSearcher from the request obje

Re: Getting a document by primary key

2008-11-03 Thread Otis Gospodnetic
Solr - Nutch - Original Message > From: Marc Sturlese <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Monday, November 3, 2008 2:40:00 PM > Subject: Re: Getting a document by primary key > > > Hey there, > I never run out of memory but I th

Re: Getting a document by primary key

2008-11-03 Thread Yonik Seeley
On Mon, Nov 3, 2008 at 2:40 PM, Marc Sturlese <[EMAIL PROTECTED]> wrote: > As hits is deprecated I tried to use termdocs and top docs... Try using searcher.getFirstMatch(t) as Jonathan is. It should be faster than Hits. > but the memory > problem never disapeared... > If I call the garbage colle

Re: Getting a document by primary key

2008-11-03 Thread Marc Sturlese
Hey there, I never run out of memory but I think the app always run to the limit... The problem seems to be in here (searching by term): try { indexSearcher = new IndexSearcher(path_index) ; QueryParser queryParser = new QueryParser("id_field", getAnalyzer(stop

Re: Getting a document by primary key

2008-11-03 Thread Yonik Seeley
On Sun, Nov 2, 2008 at 8:09 PM, Marc Sturlese <[EMAIL PROTECTED]> wrote: > I am doing the same and I am experimenting some trouble. I get the document > data searching by term. The problem is that when I do it several times > (inside a huge for) the app starts increasing the memory use until I use

Re: Getting a document by primary key

2008-11-02 Thread Marc Sturlese
Hey there, I am doing the same and I am experimenting some trouble. I get the document data searching by term. The problem is that when I do it several times (inside a huge for) the app starts increasing the memory use until I use almost the whole memory... Did u find any other way to do that? J

Re: Getting a document by primary key

2008-10-20 Thread Otis Gospodnetic
gt; From: Jonathan Ariel <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Monday, October 20, 2008 11:39:33 AM > Subject: Re: Getting a document by primary key > > Thanks Otis, but since I'm working on my own RequestHandler I need the > actual code that I shoul

Re: Getting a document by primary key

2008-10-20 Thread Jonathan Ariel
Thanks Otis, but since I'm working on my own RequestHandler I need the actual code that I should execute on the SolrIndexSearcher or IndexReader to get the document. Right now I'm doing the following: public Document getDocumentByUniqueKey(String id, SolrIndexSearcher searcher, Ind

Re: Getting a document by primary key

2008-10-20 Thread Otis Gospodnetic
Jonathan, http://./.?q=: should be fine. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Jonathan Ariel <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Monday, October 20, 2008 11:09:35 AM > Subject: Getting a docume