Skip to content

Commit

Permalink
feat(Evenement): ajout de la configuration evenement pour meilisearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandoraaa committed Dec 9, 2022
1 parent 38511fc commit f7628ba
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion config/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
const LIMITE_ENTRIES_EVENEMENT = 1000
const LIMITE_MAX_EVENEMENTS = 100000
const LIMITE_MAX_FACETS = 100000

module.exports = ({env}) => ({
meilisearch: {
config: {
host: env('PLUGIN_MEILISEARCH_URL'),
apiKey: env("PLUGIN_MEILISEARCH_API_KEY")
}
},
"evenement": {
entriesQuery: {
limit: LIMITE_ENTRIES_EVENEMENT,
},
settings: {
filterableAttributes: ["type", "online", "lieu", "dateDebut"],
searchableAttributes: ["titre", "description", "organismeOrganisateur"],
sortableAttributes: ["dateDebut"],
displayedAttributes: ["titre", "dateDebut", "dateFin", "organismeOrganisateur", "lieu", "slug"],
pagination: {
maxTotalHits: LIMITE_MAX_EVENEMENTS
},
faceting: {
maxValuesPerFacet: LIMITE_MAX_FACETS
},
}
},
},
})

0 comments on commit f7628ba

Please sign in to comment.