Package com.gitblit.service

Examples of com.gitblit.service.LuceneService


    MemorySettings settings = new MemorySettings();
    settings.put(Keys.git.repositoriesFolder, GitBlitSuite.REPOSITORIES);
    RuntimeManager runtime = new RuntimeManager(settings, GitBlitSuite.BASEFOLDER).start();
    UserManager users = new UserManager(runtime).start();
    RepositoryManager repos = new RepositoryManager(runtime, users);
    return new LuceneService(settings, repos);
  }
View Full Code Here


    List<SearchResult> srs = luceneExecutor.search(query, page, pageSize, repositories);
    return srs;
  }

  protected void configureLuceneIndexing() {
    luceneExecutor = new LuceneService(settings, this);
    int period = 2;
    scheduledExecutor.scheduleAtFixedRate(luceneExecutor, 1, period,  TimeUnit.MINUTES);
    logger.info("Lucene will process indexed branches every {} minutes.", period);
  }
View Full Code Here

    settings.put(Keys.git.repositoriesFolder, GitBlitSuite.REPOSITORIES);
    XssFilter xssFilter = new AllowXssFilter();
    RuntimeManager runtime = new RuntimeManager(settings, xssFilter, GitBlitSuite.BASEFOLDER).start();
    UserManager users = new UserManager(runtime, null).start();
    RepositoryManager repos = new RepositoryManager(runtime, null, users);
    return new LuceneService(settings, repos);
  }
View Full Code Here

    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);
  }
View Full Code Here

TOP

Related Classes of com.gitblit.service.LuceneService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.