From 01a24fd6b1208626e70d2f79b3d81579b6eb1603 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Mon, 17 Oct 2022 14:31:24 -0600 Subject: update to new index --- main.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 2a2f4d9..1c2b8f6 100644 --- a/main.go +++ b/main.go @@ -54,7 +54,7 @@ func main() { Host: meili_host, }) - index := client.Index("fda510k") + index := client.Index("510k") http.HandleFunc("/classic/", func(w http.ResponseWriter, r *http.Request) { t, _ := template.ParseFiles("templates/search.gtpl") @@ -97,9 +97,26 @@ func main() { "applicant", "decision", "decision_date", + "full_text", "id", "predicates", "submission_date", + "contact", + "STREET1", + "STREET2", + "CITY", + "STATE", + "ZIP", + "COUNTRY_CODE", + "postal_code", + "REVIEWADVISECOMM", + "PRODUCTCODE", + "STATEORSUMM", + "CLASSADVISECOMM", + "SSPINDICATOR", + "TYPE", + "THIRDPARTY", + "EXPEDITEDREVIEW", }}, &res) fmt.Println(res) documentDetailsTemplate2.Execute(w, DocumentResponse{ -- cgit v1.2.3