forked from meilisearch/strapi-plugin-meilisearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopulate.js
37 lines (36 loc) · 778 Bytes
/
populate.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
meilisearch: {
config: {
restaurant: {
entriesQuery: {
populate: ['repeatableComponent.categories', 'categories'],
},
},
},
},
}
// The following document structure is indexed in Meilisearch
// {
// id: '1',
// _meilisearch_id: 'restaurant-1',
// title: 'The slimmy snail',
// // ... other restaurant fields
// repeatableComponent: [
// {
// id: 1,
// title: 'my repeatable component 1',
// categories: [
// {
// id: 3,
// name: 'Asian',
// // ... other category fields
// },
// {
// id: 2,
// name: 'Healthy',
// // ... other category fields
// },
// ],
// },
// ],
// }