lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <karl.wet...@gmail.com>
Subject Re: Big problem with big indexes
Date Tue, 17 Oct 2006 16:20:51 GMT

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message