List<SearchResult> srs = luceneExecutor.search(query, page, pageSize, repositories);
return srs;
}
protected void configureLuceneIndexing() {
luceneExecutor = new LuceneService(settings, this);
String frequency = settings.getString(Keys.web.luceneFrequency, "2 mins");
int mins = TimeUtils.convertFrequencyToMinutes(frequency, 2);
scheduledExecutor.scheduleAtFixedRate(luceneExecutor, 1, mins, TimeUnit.MINUTES);
logger.info("Lucene will process indexed branches every {} minutes.", mins);
}