You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ya...@bloglines.com on 2005/08/05 02:14:41 UTC
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
Re: Search shortly after adding a doc
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
If you want to match a single document against a Query rapidly, try
out the MemoryIndex as part of the contrib/memory codebase in
Subversion.
Erik
On Aug 4, 2005, at 8:14 PM, yahootintin.11533894@bloglines.com wrote:
> 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