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