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";
}