Skip to content
Snippets Groups Projects
Commit 2b39d323 authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

fix(meilisearch): display all attributes

parent 8b440ca2
No related branches found
No related tags found
4 merge requests!73Deploy Openshift v2,!65MEP: removed Meilisearch,!52back-office SGE before canary release,!50fix: reset and display all attributes
......@@ -83,13 +83,6 @@ func NewDataHandler() *DataHandler {
})
settings := meilisearch.Settings{
DisplayedAttributes: []string{
"ID",
"CreatedAt",
"firstname",
"lastname",
"pointID",
},
SearchableAttributes: []string{
"pointID",
"lastname",
......@@ -111,6 +104,7 @@ func NewDataHandler() *DataHandler {
},
}
meiliClient.Index("consents").ResetSettings()
meiliClient.Index("consents").UpdateSettings(&settings)
return &DataHandler{sqlClient: sqlClient, meiliClient: meiliClient}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment