Package org.compass.core

Examples of org.compass.core.CompassSearchSession.find()


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

TOP
Copyright © 2018 www.massapi.com. 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.