lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias W." <Matthias.Wang...@e-projecta.com>
Subject Re: Lucene SpellChecker returns no suggetions after changing Server
Date Mon, 22 Dec 2008 10:59:38 GMT

Thanks for your answer.
I already found the reason for the bad performance.

hossman wrote:
> 
> don't construct a new LuceneDictionary/IndexReader on every "suggest" call 
> ... construct them once, and reuse them for each suggestion.
> 
This was the first thing I did, but the effect was not that big...

The reason was the usage of the RAMDirectory. Now I'm usig
FSDirectory.getDirectory("/dictionary") instead of new RAMDirectory() and it
works fine.
-- 
View this message in context: http://www.nabble.com/Lucene-SpellChecker-returns-no-suggetions-after-changing-Server-tp20910159p21125964.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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