Anshum:

On 23/04/2008, Anshum <[EMAIL PROTECTED]> wrote:
>  The issue seems to be with the initialization of the index writer, try
>  initializing it with a the last parameter as false i.e.
>  *writer = new IndexWriter(indexLocation, new StandardAnalyzer(), false);

writer = new IndexWriter(indexLocation, new StandardAnalyzer());

>  *If you initialize it with the last argument as true, it creates a new
>  index  each time @ the index location.
>  With the last argument as 'false' you would be able to append data to the
>  existing index.

if you don't provide the last argument, it does what it logically
should (create new index unless one exists).
-- 
Cheers,
Hasan Diwan <[EMAIL PROTECTED]>

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

Reply via email to