Hi Sergiu, Why 1 mn and not 30 sec as proposed by Ludovic? He convinced me that it doesn't cost anything to run it every 30 sec and that'll spread the indexing work (like the GC does) and let users search faster when new changes are made to docs. Thanks -Vincent On Apr 25, 2008, at 2:50 AM, sdumitriu (SVN) wrote:
Author: sdumitriu Date: 2008-04-25 02:50:17 +0200 (Fri, 25 Apr 2008) New Revision: 9365
Modified: xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/ xwiki/plugin/lucene/IndexUpdater.java Log: XPLUCENE-10: Reduce the default indexing period to 1 minute
Modified: xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/ com/xpn/xwiki/plugin/lucene/IndexUpdater.java =================================================================== --- xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/ xwiki/plugin/lucene/IndexUpdater.java 2008-04-25 00:30:08 UTC (rev 9364) +++ xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/ xwiki/plugin/lucene/IndexUpdater.java 2008-04-25 00:50:17 UTC (rev 9365) @@ -55,7 +55,7 @@ /** * Milliseconds of sleep between checks for changed documents */ - private int indexingInterval = 3000; + private int indexingInterval = 60000;
private boolean exit = false;
@@ -405,7 +405,7 @@
this.indexingInterval = 1000 * Integer.parseInt(config - .getProperty(LucenePlugin.PROP_INDEXING_INTERVAL, "300")); + .getProperty(LucenePlugin.PROP_INDEXING_INTERVAL, "60"));
// Note: There's no need to open the Searcher here (with a call to // openSearcher()) as each
_______________________________________________ notifications mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/notifications