summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2022-10-17 14:31:24 -0600
committernavanchauhan <navanchauhan@gmail.com>2022-10-17 14:31:24 -0600
commit01a24fd6b1208626e70d2f79b3d81579b6eb1603 (patch)
treefe4948ac8bde2f78cded7782b869b3c61167af41 /main.go
parent696c8204f33e724562c6e22350112d41424d0854 (diff)
update to new index
Diffstat (limited to 'main.go')
-rw-r--r--main.go19
1 files changed, 18 insertions, 1 deletions
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{