1
This commit is contained in:
Alex Yatskov 2015-03-25 13:23:06 +09:00
parent bed11ae34b
commit b2f9096841

View File

@ -53,7 +53,10 @@ func executeQuery(rw http.ResponseWriter, req *http.Request) {
foundEntries := findRecords(entries, features, request.MinScore) foundEntries := findRecords(entries, features, request.MinScore)
response := jsonQueryResponse{Columns: make(map[string]jsonColumn)} response := jsonQueryResponse{
Columns: make(map[string]jsonColumn),
Items: make([]jsonRecord, 0)}
for name, value := range features { for name, value := range features {
column := jsonColumn{Value: value, Steps: request.HintSteps} column := jsonColumn{Value: value, Steps: request.HintSteps}