Re: new added documents not showing

2005-03-23 Thread roy-lucene-user
Pasha, in short, that is all I'm trying to do. Wasn't an issue really before. Otis, not sure what Luke is. But the documents appear after we optimize. Roy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: new added documents not showing

2005-03-22 Thread roy-lucene-user
Pasha, in short, that is all I'm trying to do. Wasn't an issue really before. Otis, not sure what Luke is. But the documents appear after we optimize. Roy. On Mon, 21 Mar 2005 18:20:32 -0800 (PST), Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > * Replies will be sent through Spamex to java-use

Re: new added documents not showing

2005-03-21 Thread Otis Gospodnetic
Hello, Sorry if this is stating the obvious, but have you used Luke to verify that the new documents were indexed in the first place? Sorry if you've already mentioned this. Otis --- [EMAIL PROTECTED] wrote: > > When do you open the index writer? Where is the code? > > Ah, sorry. That last s

Re: new added documents not showing

2005-03-21 Thread roy-lucene-user
correct, we also can't see the new documents when we open an IndexReader to the main index. Roy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: new added documents not showing

2005-03-21 Thread Pasha Bizhan
Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Ah, sorry. That last section is in a method that gets called > in a loop. The shortest version of your code is: - void mainFunction() { IndexWriter writer = null; writer = new IndexWriter( mainindex, n

Re: new added documents not showing

2005-03-21 Thread roy-lucene-user
> When do you open the index writer? Where is the code? Ah, sorry. That last section is in a method that gets called in a loop. IndexWriter writer = null; try { writer = new IndexWriter( mainindex, new StandardAnalyzer(), false ); for ( int i = 0; i < dir

RE: new added documents not showing

2005-03-21 Thread Pasha Bizhan
Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > I just realized that the way I described our process was off a little > bit. > > Here's the process again: > > I apologize for the amount of code below. When do you open the index writer? Where is the code? Pasha Bizhan http://lucene

RE: new added documents not showing

2005-03-21 Thread Pasha Bizhan
Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > I just realized that the way I described our process was off > a little bit. > > Here's the process again: > > I apologize for the amount of code below. When you open the index writer? Where is the code? Pasha Bizhan http://lucenedo

Re: new added documents not showing

2005-03-21 Thread roy-lucene-user
On Sat, 19 Mar 2005 22:43:44 +0300, Pasha Bizhan <[EMAIL PROTECTED]> wrote: > Could you provide the code snippets for your process? > Sure (thanx for helping, btw) I just realized that the way I described our process was off a little bit. Here's the process again: 1. grab all index Directorys

Re: new added documents not showing

2005-03-18 Thread roy-lucene-user
Hi guys, Just trying to understand where problems can occur. Maybe I need to describe our indexing process some more. We create new indexes as "index parts" with Documents that are supposed to contain unique ID key fields. These "index parts" get merged into two separate indexes: a main index

Re: new added documents not showing

2005-03-18 Thread roy-lucene-user
> > However, after optimizing, suddenly those new documents > > appear. Its almost as if the new segments are not being read > > by the IndexReader. > > You need to close IndexWriter before open IndexReader. Or reopen > IndexReader. > > See TestIndexReader.java:: private void deleteReaderWriterC

RE: new added documents not showing

2005-03-17 Thread Pasha Bizhan
Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > However, after optimizing, suddenly those new documents > appear. Its almost as if the new segments are not being read > by the IndexReader. > > Any thoughts? You need to close IndexWriter before open IndexReader. Or reopen IndexRe