code: func (h *Handler) handleGetIndex(w http.ResponseWriter, r *http.Request) {
  	if !validHeaderAcceptJSON(r.Header) {
  		http.Error(w, "JSON only acceptable response", http.StatusNotAcceptable)
  		return
  	}
  	indexName := mux.Vars(r)["index"]
  	for _, idx := range h.api.Schema(r.Context()) {
  		if idx.Name == indexName {
  			if err := json.NewEncoder(w).Encode(idx); err != nil {
  				h.logger.Printf("write response error: %s", err)
  			}
  			return
  		}
  	}
  	http.Error(w, fmt.Sprintf("Index %s Not Found", indexName), http.StatusNotFound)
  }
docs: // handleGetIndex handles GET /index/<indexname> requests.