public class SolrResponseUtils extends Object
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
SolrResponseUtils() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static org.apache.solr.common.SolrDocumentList |
convertToSolrDocumentList(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.action.search.SearchResponse response,
org.apache.solr.common.util.NamedList<Object> debugList)
Converts the search results into a SolrDocumentList that can be
serialized by the Solr Response Writer.
|
static org.apache.solr.common.util.NamedList<Object> |
createFacetResponse(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.action.search.SearchResponse response) |
static org.apache.solr.common.util.NamedList<Object> |
createHighlightResponse(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.action.search.SearchResponse response)
Creates a NamedList for the for document highlighting response
|
static org.apache.solr.common.util.NamedList<Object> |
createResponseHeader(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.action.search.SearchResponse response)
Creates the Solr response header based on the search response.
|
static org.apache.solr.common.util.NamedList<Object> |
createSearchResponse(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.action.search.SearchResponse response)
Converts the search response into a NamedList that the Solr Response
Writer can use.
|
static void |
writeResponse(org.apache.solr.common.util.NamedList<Object> obj,
org.elasticsearch.rest.RestRequest request,
org.elasticsearch.rest.RestChannel channel)
Serializes the NamedList in the specified output format and sends it to
the Solr Client.
|
public static final Charset UTF_8
public static org.apache.solr.common.util.NamedList<Object> createSearchResponse(org.elasticsearch.rest.RestRequest request, org.elasticsearch.action.search.SearchResponse response)
request - the ES RestRequestresponse - the ES SearchResponsepublic static org.apache.solr.common.util.NamedList<Object> createResponseHeader(org.elasticsearch.rest.RestRequest request, org.elasticsearch.action.search.SearchResponse response)
request - the ES RestRequestresponse - the ES SearchResponsepublic static org.apache.solr.common.util.NamedList<Object> createHighlightResponse(org.elasticsearch.rest.RestRequest request, org.elasticsearch.action.search.SearchResponse response)
request - the ES RestRequestresponse - the ES SearchResponsepublic static org.apache.solr.common.util.NamedList<Object> createFacetResponse(org.elasticsearch.rest.RestRequest request, org.elasticsearch.action.search.SearchResponse response)
public static org.apache.solr.common.SolrDocumentList convertToSolrDocumentList(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.action.search.SearchResponse response,
org.apache.solr.common.util.NamedList<Object> debugList)
request - the ES RestRequestresponse - the ES SearchResponsepublic static void writeResponse(org.apache.solr.common.util.NamedList<Object> obj, org.elasticsearch.rest.RestRequest request, org.elasticsearch.rest.RestChannel channel)
obj - the NamedList response to serializerequest - the ES RestRequestchannel - the ES RestChannelCopyright © 2011-2014. All Rights Reserved.