Hi
I have a list of batch tasks that need to be executed. Each batch contains
1000 documents and basically I use a RAMDirectory based index writer, and at
the end of adding 1000 documents to the memory i perform the following:
ramWriter.commit();
indexWriter.addIndexesNoOptimize(ramWriter.getDirectory());
ramWriter.close();
Do I then need to explicitly do an indexWriter.commit()? It seems as though if
I don't do an explicit commit the documents aren't added to the index (I've
inspected via Luke). I would've thought that the
indexWriter.addIndexesNoOptimize would not require me to call the commit
explicitly. Is this a correct assumption? or should i call the commit
explicitly for my disk based index writer?
The main idea behind this is that each batch can be executed in a seperate
thread and there is only on shared index writer.
Any help would be appreciated.
Thanks
Amin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]