It's almost entirely trivial. Note that the IndexHandler is the name of my
singleton class
Here's the meat of the class
private static IndexSearcher indexSearcher;
public static synchronized IndexSearcher getSearcher()
throws Exception
{
if (IndexHandler.indexSearc
* Erick Erickson <[EMAIL PROTECTED]>:
> I guess I don't understand the problem. Can you build the documents
> from within a loop or not? If you can, it's simple...
>
> open indexwriter
> while (build a document)
>write to index
>
> close/optimize.
>
> Or are you saying that you can't build f
I guess I don't understand the problem. Can you build the documents
from within a loop or not? If you can, it's simple...
open indexwriter
while (build a document)
write to index
close/optimize.
Or are you saying that you can't build from within a loop?
Best
Erick
On 6/28/07, Kai Weber <[E
Hello,
In my application I have to add documents to the index as follows:
1. build the document to add from a repository
2. obtain an IndexWriter
2. add document to index
4. write and optimize index, close writer
5. goto 1 until no documents left
I must work with a legacy code witch does the doc