MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / searchText

Method searchText

apps/server/internal/httpserver/server.go:852–860  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

850}
851
852func (s *Server) searchText(w http.ResponseWriter, r *http.Request) {
853 q := r.URL.Query().Get("q")
854 matches, err := s.currentVault().SearchText(q)
855 if err != nil {
856 writeError(w, err)
857 return
858 }
859 writeJSON(w, http.StatusOK, matches)
860}
861
862// --- Demo tour ---
863

Callers

nothing calls this directly

Calls 4

currentVaultMethod · 0.95
writeErrorFunction · 0.85
writeJSONFunction · 0.85
SearchTextMethod · 0.80

Tested by

no test coverage detected