lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mordo, Aviran (EXP N-NANNATEK)" <aviran.mo...@lmco.com>
Subject RE: Search shortly after adding a doc
Date Fri, 05 Aug 2005 14:24:37 GMT
You can try working with two indexes one for all of today's messages
which will be pretty small, and another for past messages. Then once a
day merge the small index to the big one and start fresh. This way you
need only to open an IndexReader for the small index while the big one
does not change.

HTH

Aviran
http://www.aviransplace.com

-----Original Message-----
From: yahootintin.11533894@bloglines.com
[mailto:yahootintin.11533894@bloglines.com] 
Sent: Thursday, August 04, 2005 8:15 PM
To: java-user@lucene.apache.org
Subject: Search shortly after adding a doc

i want to use lucene to search shortly (within a second) after adding a
document.
 closing a writer to ensure the new document is written and then opening
an index reader seems to be too slow on large indexes.

how do other people
handle this?  

(i know this can be solved with a database but i'd like to use the
tokenization/stemming features of lucene).

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message