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 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 < directories.length; i++ ) {
>                 moveDocumentsOver( writer, directories[i] );
>                 // delete dir
>             }
>         }
>         catch ( Exception e ) {
>             // log error
>         }
>         finally {
>             if ( writer != null ) try { writer.close(); } catch (
> Exception e ) {}
>         }
> 
> Roy.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to