Examples of searchForRelated()


Examples of org.fao.geonet.kernel.search.KeywordsSearcher.searchForRelated()

      GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
      ThesaurusManager thesaurusMan = gc.getBean(ThesaurusManager.class);
      KeywordsSearcher searcherBNR = new KeywordsSearcher(context, thesaurusMan);
     
      for (int i = 0; i <= reqType.size() - 1; i++) {
        searcherBNR.searchForRelated(uri, ref, reqType.get(i), lang);
     
        searcherBNR.sortResults(KeywordSort.defaultLabelSorter(SortDirection.DESC));
        String type;
       
        if (reqType.get(i) == KeywordRelation.BROADER) {
View Full Code Here

Examples of org.fao.geonet.kernel.search.KeywordsSearcher.searchForRelated()

      else if(request.equals("narrower"))
        reqType = KeywordRelation.BROADER;
      else
        reqType = KeywordRelation.RELATED;
     
      searcher.searchForRelated(params, reqType, context.getLanguage());
   
      searcher.sortResults(KeywordSort.defaultLabelSorter(SortDirection.DESC));
     
      // Build response
      response.setAttribute("relation", request);
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.