-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.config.example.js
55 lines (54 loc) · 1.52 KB
/
search.config.example.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
entities: [
{
name: "api::news-and-publication.news-and-publication",
fields: ["PageTitle", "Type","PageSlug"],
title: "PageTitle",
match_filters: { Type: "News" },
frontend_entity: "api::news.news"
},
{
name: "api::news-and-publication.news-and-publication",
fields: ["PageTitle","Type"],
title: "PageTitle",
match_filters: { Type: "Publication" },
frontend_entity:"api::publication.publication",
repeated :1
},
{
name: "api::initiative.initiative",
fields: ["PageTitle", "ShortDescription"],
title: "PageTitle"
},
],
search_filters: true,
map:{
others: [
"api::program.program",
"api::resource.resource",
"api::initiative.initiative",
"api::news.news",
"api::publication.publication"
],
map_entity: [
{
passed: "api::news.news",
original_entity: "api::news-and-publication.news-and-publication",
filters: { Type: "News" },
},
{
passed: "api::publication.publication",
original_entity: "api::news-and-publication.news-and-publication",
filters: { Type: "Publication" },
},
],
final_count : {
all: 0,
"api::program.program":0,
"api::resource.resource":0,
"api::initiative.initiative":0,
"api::news.news":0,
"api::publication.publication":0
}
}
};