forked from trilbymedia/grav-plugin-tntsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blueprints.yaml
222 lines (198 loc) · 4.56 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
name: TNT Search
version: 2.0.1
description: Powerful indexed-based full text search engine powered by TNTSearch
icon: binoculars
author:
name: Trilby Media, LLC
email: devs@trilby.media
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.3.2' }
form:
validation: strict
fields:
enabled:
type: toggle
label: Plugin status
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
index_status:
type: indexstatus
label: Search Index Status
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
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