Daniel Noll wrote:
> On Friday 22 June 2007 09:34:44 Tanya Levshina wrote:
>> ramWriter.addDocument(doc);
>>
>> fsWriter.addIndexes(new Directory[] {ramDir,});
>
> As IndexWriter already does this internally, I'm not exactly sure why you're
> trying to implement it again on the outside.
>
> Daniel
>
You should close or flush the ramWriter before you add the ramDir to the
fsWriter, otherwise the docs won't get flushed to the ramDir.
But I share Daniel's opinion. IndexWriter has it's own buffer internally.
- Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]