Package org.springmodules.samples.lucene.bean.indexing

Examples of org.springmodules.samples.lucene.bean.indexing.IndexInformations


  private IndexAccessorService indexAccessorService;
  private CategoryService categoryService;

  public ModelAndView handleRequest(HttpServletRequest request,
                HttpServletResponse response) throws Exception {
    IndexInformations infos = indexAccessorService.getIndexInformations();
    List categories = categoryService.getCategories();
    Map model = new HashMap();
    model.put("infos", infos);
    model.put("categories", categories);
    return new ModelAndView("indexing/indexInfos", model);
View Full Code Here


public class IndexAccessorDaoImpl extends LuceneIndexSupport implements IndexAccessorDao {

  public IndexInformations getIndexInformations() {
    boolean hasDeletions = getLuceneIndexTemplate().hasDeletions();
    int numDocs = getLuceneIndexTemplate().getNumDocs();
    IndexInformations infos = new IndexInformations();
    infos.setHasDeletions(hasDeletions);
    infos.setNumDocs(numDocs);
    return infos;
  }
View Full Code Here

TOP

Related Classes of org.springmodules.samples.lucene.bean.indexing.IndexInformations

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.