Package org.compass.core

Examples of org.compass.core.CompassSearchSession


      ctx.addMessage("searchForm:inputSearch", message);
    } else {
      List<Archivale> archivalien = new ArrayList<Archivale>();
      rechercheBean.setArchivalien(archivalien);

      CompassSearchSession session = compass.openSearchSession();
      try {
        CompassHits hits = session.find(suchKriterium);
        System.out.println("Hits");
        for (int i = 0; i < hits.getLength(); i++) {
          archivalien.add((Archivale) hits.data(i));
          System.out.println(hits.hit(i).score() + " "
              + hits.hit(i).getHighlightedText());
        }
      } finally {
        session.close();
      }
    }
    return "index";
  }
View Full Code Here

TOP

Related Classes of org.compass.core.CompassSearchSession

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.