Examples of sortResults()


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

      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) {
            // If looking for broader search concept in a narrower element
          type = "narrower";
View Full Code Here

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

      ThesaurusManager thesaurusMan = gc.getBean(ThesaurusManager.class);

            if(Log.isDebugEnabled("KeywordsManager")) Log.debug("KeywordsManager","Creating new keywords searcher");
      searcher = new KeywordsSearcher(context, thesaurusMan);
      searcher.search(context.getLanguage(), params);
      searcher.sortResults(KeywordSort.defaultLabelSorter(SortDirection.DESC));
      session
          .setProperty(Geonet.Session.SEARCH_KEYWORDS_RESULT,
              searcher);
    } else {
      searcher = (KeywordsSearcher) session
View Full Code Here

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

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