lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toke Eskildsen>
Subject Re: The performance of lucene searching(web entironment) test
Date Tue, 10 Jun 2008 14:34:17 GMT
On Tue, 2008-06-10 at 21:11 +0800, lutan wrote:
> [A lot of text with code and no newlines, making it very hard to read]

In your test you're reusing the searcher. For each search your program
performs, you will see faster response times, until the searcher is
fully warmed.

If your production-system, you re-open your searcher every time and do
not have the benefit of a warmed searcher.

So yes, Singleton searcher helps, as opposed to opening a searcher for
every search. Try making a test where the only thing you do is open a
searcher 100 times and you will see that it takes a non-trivial amount
of time.

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

View raw message