17 okt 2006 kl. 15.55 skrev Ariel Isaac Romero Cartaya:

Here are pieces of my source code:

         public  Hits search(String query) throws IOException  {

       for (int i = 0; i < IndexCount; i++) {
searchables[i] = new IndexSearcher (RAMIndexsManager.getInstance
().getDirectoryAt(i));

I didn't look further than this. You can initially try to reuse your IndexSearchers. That should help a lot.

http://lucene.apache.org/java/docs/api/org/apache/lucene/search/ IndexSearcher.html "For performance reasons it is recommended to open only one IndexSearcher and use it for all of your searches."


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to