* @param searchResult
* @param searchString
*/
private void setFeedModules(SyndFeed feed, SearchResponse searchResult, String searchString) {
OpenSearchModuleImpl osm = new OpenSearchModuleImpl();
osm.setStartIndex(1);
osm.setTotalResults(searchResult.getResults().size());
osm.setItemsPerPage(50);
Link link = new Link();
link.setHref("http://www.jahia.org/opensearch-description.xml");
link.setType("application/opensearchdescription+xml");
link.setTitle("Jahia Open Search");
osm.setLink(link);
OSQuery query = new OSQuery();
query.setRole("request");
query.setSearchTerms(searchString);
osm.addQuery(query);
List<OpenSearchModule> modules = feed.getModules();
modules.add(osm);
feed.setModules(modules);
}