Package org.springframework.data.solr.core.query.result

Examples of org.springframework.data.solr.core.query.result.SimpleTermsFieldEntry


        .getTermMap().size());

    for (Map.Entry<String, List<Term>> entry : termsResponse.getTermMap().entrySet()) {
      List<TermsFieldEntry> terms = new ArrayList<TermsFieldEntry>(entry.getValue().size());
      for (Term term : entry.getValue()) {
        SimpleTermsFieldEntry termsEntry = new SimpleTermsFieldEntry(term.getTerm(), term.getFrequency());
        termsEntry.setField(entry.getKey());
        terms.add(termsEntry);
      }
      result.put(entry.getKey(), terms);
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.query.result.SimpleTermsFieldEntry

Copyright © 2018 www.massapicom. 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.