func (parser *TestResultParser) ParseFacetCounts(response *solr.SelectResponse, sr *solr.SolrResult) { if facetCounts, ok := response.Response["facet_counts"]; ok { sr.FacetCounts = facetCounts.(map[string]interface{}) } }
func (parser *TestResultParser) ParseHighlighting(response *solr.SelectResponse, sr *solr.SolrResult) { if highlighting, ok := response.Response["highlighting"]; ok { sr.Highlighting = highlighting.(map[string]interface{}) } }
func (parser *TestResultParser) ParseError(response *solr.SelectResponse, sr *solr.SolrResult) { if error, ok := response.Response["error"]; ok { sr.Error = error.(map[string]interface{}) } }