Search in sources :

Example 1 with LuceneReindexer

use of net.jforum.search.LuceneReindexer in project jforum2 by rafaelsteil.

the class LuceneStatsAction method reconstructIndexFromScratch.

public void reconstructIndexFromScratch() {
    LuceneReindexArgs args = this.buildReindexArgs();
    boolean recreate = "recreate".equals(this.request.getParameter("indexOperationType"));
    LuceneReindexer reindexer = new LuceneReindexer(this.settings(), args, recreate);
    reindexer.startBackgroundProcess();
    this.list();
}
Also used : LuceneReindexArgs(net.jforum.search.LuceneReindexArgs) LuceneReindexer(net.jforum.search.LuceneReindexer)

Example 2 with LuceneReindexer

use of net.jforum.search.LuceneReindexer in project jforum2 by rafaelsteil.

the class LuceneCommandLineReindexer method start.

private void start() {
    LuceneReindexer reindexer = new LuceneReindexer((LuceneSettings) SystemGlobals.getObjectValue(ConfigKeys.LUCENE_SETTINGS), this.reindexerArgs, this.recreate);
    reindexer.startProcess();
}
Also used : LuceneReindexer(net.jforum.search.LuceneReindexer)

Aggregations

LuceneReindexer (net.jforum.search.LuceneReindexer)2 LuceneReindexArgs (net.jforum.search.LuceneReindexArgs)1