-
Notifications
You must be signed in to change notification settings - Fork 10
/
example.json
103 lines (101 loc) · 3.01 KB
/
example.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// on each searchable contentObject, article, block or component
"_search": {
"_isEnabled": true,
"title": "Alternative title",
"keywords": [
"sentences which can be used",
"to better enhance the component descriptions",
"describe",
"content"
]
}
// in course.json
"_search": {
"_isEnabled": true,
"_drawerOrder": 0,
"title": "",
"description": "Type in search words and enter",
"noResultsMessage": "Sorry, no results were found",
"awaitingResultsMessage": "Formulating results...",
"_showHighlights": true,
"_showFoundWords": true,
"_previewWords": 15,
"_previewCharacters": 30
}
// override if needed in course.json
"_search": {
"_previewWords": 15,
"_previewCharacters": 30,
"_searchAttributes": [
{
"_attributeName": "_search",
"_level": 1,
"_allowTextPreview": false
},
{
"_attributeName": "_keywords",
"_level": 1,
"_allowTextPreview": false
},
{
"_attributeName": "keywords",
"_level": 1,
"_allowTextPreview": false
},
{
"_attributeName": "displayTitle",
"_level": 2,
"_allowTextPreview": true
},
{
"_attributeName": "body",
"_level": 3,
"_allowTextPreview": true
},
{
"_attributeName": "alt",
"_level": 4,
"_allowTextPreview": false
},
{
"_attributeName": "_alt",
"_level": 4,
"_allowTextPreview": false
},
{
"_attributeName": "_items",
"_level": 5,
"_allowTextPreview": false
},
{
"_attributeName": "items",
"_level": 5,
"_allowTextPreview": false
},
{
"_attributeName": "text",
"_level": 5,
"_allowTextPreview": true
}
],
"_hideComponents": [
"blank",
"assessmentResults"
],
"_hideTypes": [
],
"_ignoreWords": [
"a","an","and","are","as","at","be","by","for",
"from","has","he","in","is","it","its","of","on",
"that","the","to","was","were","will","wish","",
],
"_matchOn": {
"_contentWordBeginsPhraseWord": false,
"_contentWordContainsPhraseWord": false,
"_contentWordEqualsPhraseWord": true ,
"_phraseWordBeginsContentWord": true
},
"_scoreQualificationThreshold": 20,
"_minimumWordLength": 2,
"_frequencyImportance": 5
}