Implement FTS5 for order search
This commit is contained in:
parent
81b442fcc4
commit
2588f2c54e
6 changed files with 125 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue