forked from trilbymedia/grav-plugin-tntsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blueprints.yaml
275 lines (242 loc) · 5.67 KB
/
blueprints.yaml
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
name: TNT Search
version: 3.0.0
testing: false
description: Powerful indexed-based full text search engine powered by TNTSearch
icon: binoculars
author:
name: Trilby Media, LLC
email: [email protected]
homepage: https://github.com/trilbymedia/grav-plugin-tntsearch
keywords: grav, plugin, search, search-engine
bugs: https://github.com/trilbymedia/grav-plugin-tntsearch/issues
docs: https://github.com/trilbymedia/grav-plugin-tntsearch/blob/develop/README.md
license: MIT
dependencies:
- { name: grav, version: '>=1.6.3' }
form:
validation: strict
fields:
enabled:
type: toggle
label: Plugin status
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
index_title:
type: spacer
title: Indexer Settings
index_status:
type: indexstatus
label: Search Index Status
enable_admin_page_events:
type: toggle
label: Enable Admin Page Events
help: Disable this if you are having problems with timeouts during page saving
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
scheduled_index.enabled:
type: toggle
label: Enable Index Scheduled Job
help: Use the Grav Scheduler to kick off a background index job
highlight: 0
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
scheduled_index.at:
type: cron
label: Scheduled Job Frequency
size: medium
help: Use 'cron' format
default: '0 */3 * * *'
placeholder: '0 */3 * * *'
scheduled_index.logs:
type: text
label: Scheduled Job Log File
placeholder: 'logs/tntsearch-index.out'
size: medium
ui_title:
type: spacer
title: UI Settings
built_in_css:
type: toggle
label: Built-in CSS
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
built_in_js:
type: toggle
label: Built-in Javascript
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
search_title:
type: spacer
title: Search Settings
built_in_search_page:
type: toggle
label: Built-in Search Page
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
search_route:
type: text
size: medium
label: Search Page Route
help: The route for the built-in search page, leave empty if you wish to not have a dedicated search page.
query_route:
type: text
size: medium
label: Query Route
help: The route used to retrieve search results.
search_type:
type: select
size: small
classes: fancy
label: Search Type
help: Configure how TNTSearch will use the search query term
default: auto
options:
auto: Auto
basic: Basic
boolean: Boolean
fuzzy:
type: toggle
label: Fuzzy Search
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
phrases:
type: toggle
label: Match quoted phrases
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
stemmer:
type: select
size: small
classes: fancy
label: Stemmer
help: An automated process which produces a base string in an attempt to represent related words
options:
default: Default
arabic: Arabic
german: German
italian: Italian
porter: Porter
russian: Russian
ukrainian: Ukrainian
display_route:
type: toggle
label: Display Route
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
live_uri_update:
type: toggle
label: Live URI Update
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
display_hits:
type: toggle
label: Display Hits
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
display_time:
type: toggle
label: Display Time
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
limit:
type: text
label: Results Limit
default: 20
min:
type: text
label: Min Chars Before Search
default: 3
snippet:
type: text
label: Results Text Limit
default: 300
index_page_by_default:
type: toggle
label: Index Every Page
help: 'Index every page by default unless a page specifically declares `tntsearch: process: false`. Disabling this requires a `process: true` declartion to be added to each page that should be indexed.'
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
filter.items:
type: textarea
size: large
rows: 4
label: Search Filter
help: Use a standard collections based filter definition to restrict search to only these pages
yaml: true
placeholder: 'taxonomy@: { category: [news] }'
validate:
type: yaml
powered_by:
type: toggle
label: Powered By
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool