lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lu <>
Subject Re: Lucene and DB interactions
Date Mon, 28 Nov 2005 16:38:49 GMT
> I have some specific questions (Using a pure java solution with
> PostgreSQL). Any comments/info would be much appreciated.
> 1) I build an index. Then as the db gets more "documents" inserted
> into it, it needs to be added to the index. I was thinking of checking
> for X documents (will store in a vector or something) or Y time and
> then updating it by opening an IndexWriter on the index.
> 1.a) Has anybody approached this problem, and if so, how did they do it ?

We periodically check the database and find new documents.

> 1.b) For IndexSearcher, I know I have to reinstantiate it (open it),
> but how do I do that while still maintaining current search requests?

Current search results is stored in Hits object.
> 2) From time to time I rebuild the index (in FS, while the Searcher is
> reading the current one in RAM).  And then I swap out the one in RAM.
> 2.a) Has anybody done this in an automated efficient way? If so, how?

We have done it by maintaining the old index and rebuilding the new
index at the same time. And if the new index is successfully built, we
switch to the new index and destroy the old one.

The software is called DBSight. You are welcome to check it out.

Chris Lu

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message