Hi folks! In the docs it says that I should cache the IndexSearcher for best performance, and not build a new one for each query.
The problem is that when I want to switch to a new index, I would have to synchronize my search() method while my update check runs (which is also synchronized), so searching and switching to a new index never happen at the same time. I'm running a Tomcat application and realize that serializing all searches would be bad for performance, so the question is: - what is (probably) faster, having a cached IndexSearcher but a synchronized search() method, or a non-cached search() method but building a new IndexSearcher for every query? My Index is not very big, less than 5MB. Thanks for any comments! Regards, Michael -- Michael Böckling Java Engineer dmc digital media center GmbH Rommelstraße 11 70376 Stuttgart (Germany) Telefon: +49 711 601747-0 Telefax: +49 711 601747-141 E-Mail: [EMAIL PROTECTED] Internet: www.dmc.de Handelsregister: AG Stuttgart HRB 18974 Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend --------------------------------------------- Besseres E-Business. dmc ist die kreative Vernetzung von Agentur, Systemhaus und Service. Seit über 10 Jahren entwickeln und realisieren wir zukunftweisende und erfolgreiche E-Business-Lösungen. Zu unseren langjährigen Kunden zählen neckermann.de, Kodak und Telekom Training. dmc auf Platz 8 im aktuellen New Media Service Ranking. Als inhabergeführte und netzwerkunabhängige Agentur gehören wir mit einem Umsatz von 13,50 Mio. Euro zu den Top 10 der erfolgreichsten New Media Dienstleister in Deutschland. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]