Implement FTS5 for order search

This commit is contained in:
bronku 2025-03-30 14:46:01 +02:00
parent 81b442fcc4
commit 2588f2c54e
6 changed files with 125 additions and 4 deletions

View file

@ -18,8 +18,7 @@ func (h *Server) orders(r *http.Request) (any, int, error) {
func (h *Server) ordersSearch(r *http.Request) (any, int, error) {
q := r.URL.Query().Get("q")
fmt.Println(q)
data, err := h.s.GetTopOrders()
data = data[:3]
data, err := h.s.GetFilteredOrder(q)
return data, http.StatusOK, err
}