1
0
mirror of https://github.com/stevenferrer/multi-select-facet.git synced 2025-11-23 21:54:45 +02:00

use approach2 for suggest field type

This commit is contained in:
Steven Ferrer
2020-06-30 17:13:00 +08:00
parent e57605d0ab
commit 592848a937
2 changed files with 4 additions and 3 deletions

View File

@@ -161,7 +161,10 @@ func (h *searchHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
resp["query"] = query
debug := r.URL.Query().Get("debug") == "true"
if debug {
resp["query"] = query
}
w.Header().Add("content-type", "application/json")
err = json.NewEncoder(w).Encode(resp)