List of usage examples for org.apache.solr.rest BaseSolrResource getSolrResponse
public SolrQueryResponse getSolrResponse()
From source file:org.apache.lucene.analysis.ko.managed.ManagedKoreanDictionary.java
License:Apache License
@Override public void doGet(BaseSolrResource endpoint, String childId) { SolrQueryResponse response = endpoint.getSolrResponse(); if (childId != null) { if (WORDSET.equals(childId)) { response.add(childId, words); } else if (COMPOUNDS.equals(childId)) { response.add(childId, compounds); } else if (UNCOMPOUNDS.equals(childId)) { response.add(childId, uncompounds); } else {//from w ww . j a v a 2s . c o m throw new SolrException(ErrorCode.NOT_FOUND, String.format(Locale.ROOT, "%s not found in %s", childId, getResourceId())); } } else { Map<String, List<String>> managedResources = buildManagedMap(); response.add(RESOURCES, buildMapToStore(managedResources)); } }