Welcome to mirror list, hosted at ThFree Co, Russian Federation.

settings.admin.php « templates - github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a497e66e3205670f90bfbdfae21cf973b010088a (plain)
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
<?php
/**
 * Nextcloud - nextant
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Maxence Lange <maxence@pontapreta.net>
 * @copyright Maxence Lange 2016
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
script('nextant', 'settings.admin');
style('nextant', 'admin');

?>
<div class="section" id="nextant">
	<h2><?php p($l->t('Nextant (Full-Text Search)')) ?></h2>

	<table>
		<tr>
			<td colspan="2"><em><?php p($l->t('Specify the address of your Solr, and the name of the core to use.')); ?>
			<br /> <a href="https://github.com/nextcloud/nextant/wiki"
					target="_blank">
					<?php p($l->t('If you do not have a Solr servlet running, you can find few guides on how to install one on the wiki.')); ?></a>
					<br /> <a
					href="https://github.com/nextcloud/nextant/wiki/Admin-Interface">
						<?php p($l->t('You can also find more information there about this interface.')); ?></a></em></td>
		</tr>
		<tr valign="top">
			<td>
				<table style="width: 650px;">
					<tr>
						<td>&nbsp;</td>
					</tr>
					<tr class="nextant_admin_head">
						<td><div id="nextant_saving_settings"><?php p($l->t('Saving')); ?></div></td>
						<td class="nextant_admin_head"><?php p($l->t('Settings')); ?></td>
					</tr>
					<tr style="height: 30px;">
						<td class="nextant_admin_left">
	    <?php p($l->t('Nextant version:')) ?></td>
						<td><div id="nextant_version"></div></td>
					</tr>
					<tr style="height: 30px;">
						<td class="nextant_admin_left">
	    <?php p($l->t('Address of your Solr servlet:')) ?></td>
						<td><input type="text" name="solr_url" id="solr_url" value=""
							style="width: 250px;"></td>
					</tr>

					<tr style="height: 30px;">
						<td class="nextant_admin_left"><?php p($l->t('Core:')) ?></td>
						<td><input type="text" id="solr_core" value=""
							style="width: 250px;"></td>
					</tr>

					<tr style="height: 30px;">
						<td class="nextant_admin_left"><?php p($l->t('Timeout (in seconds):')) ?></td>
						<td><input type="text" id="solr_timeout" value=""
							style="width: 100px;"></td>
					</tr>

					<tr style="height: 30px;">
						<td></td>
						<td>
							<button type="button" id="nextant_apply" style="width: 264px"><?php p($l->t('Test and Save')) ?></button>
						</td>
					</tr>
				</table>
				<div id="nextant_suboptions">
					<table style="width: 650px;">
						<tr>
							<td>&nbsp;</td>
						</tr>
						<tr class="nextant_admin_head" id="solr_index_files_cont">
							<td><div id="nextant_saving_files"> <?php p($l->t('Saving')); ?></div></td>
							<td colspan="2" class="nextant_admin_head"><input type="checkbox"
								name="solr_index_files" id="solr_index_files" value="1"
								style="margin: 5px; margin-right: 15px;"><?php p($l->t('Indexing Files')); ?></td>
						</tr>
					</table>
					<div id="solr_sub_files">
						<table style="width: 650px;">

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Maximum File Size (Mb):')) ?></td>
								<td><input type="text" id="solr_index_files_max_size"
									style="width: 100px;"></td>
								<td style="width: 60px; padding-right: 10px;">[<span
									style="font-size: 12px;" id="solr_switch_filters"><?php p($l->t('Edit your filters')); ?></span>]
								</td>
							</tr>

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Index Files Tree:')) ?></td>
								<td colspan="2"><input type="checkbox"
									name="solr_index_files_tree" id="solr_index_files_tree"
									value="1" style="margin: 10px;"> <span
									id="solr_index_files_nextant_only_span"><input type="checkbox"
										name="solr_index_files_nextant_only"
										id="solr_index_files_nextant_only" value="1"
										style="margin: 10px;"><?php p($l->t('Disable default search from Files')); ?></span>
								</td>
							</tr>

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Index File Trash:')) ?></td>
								<td colspan="2"><input type="checkbox"
									name="solr_index_files_trash" id="solr_index_files_trash"
									value="1" style="margin: 10px;"></td>
							</tr>

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Index Public Links:')) ?></td>
								<td colspan="2"><input type="checkbox"
									name="solr_index_files_sharelink"
									id="solr_index_files_sharelink" value="1" style="margin: 10px;"></td>
							</tr>

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Index Federated Shares:')) ?></td>
								<td colspan="2"><input type="checkbox"
									name="solr_index_files_federated"
									id="solr_index_files_federated" value="1" style="margin: 10px;"></td>
							</tr>

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Index External Storages:')) ?></td>
								<td colspan="2"><input type="checkbox"
									name="solr_index_files_external" id="solr_index_files_external"
									value="1" style="margin: 10px;"></td>
							</tr>

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Index Encrypted Files:')) ?></td>
								<td colspan="2"><input type="checkbox"
									name="solr_index_files_encrypted"
									id="solr_index_files_encrypted" value="1" style="margin: 10px;"></td>
							</tr>

							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Last index:')) ?></td>
								<td colspan="2"><div id="solr_index_files_last"></div></td>
							</tr>

						</table>
					</div>

					<table style="width: 650px;">
						<tr>
							<td>&nbsp;</td>
						</tr>
						<tr class="nextant_admin_head" id="solr_index_bookmarks_cont">
							<td><div id="nextant_saving_bookmarks"><?php p($l->t('Saving')); ?></div></td>
							<td class="nextant_admin_head"><input type="checkbox"
								name="solr_index_bookmarks" id="solr_index_bookmarks" value="1"
								style="margin: 5px; margin-right: 15px;"><?php p($l->t('Indexing Bookmarks')); ?></td>
						</tr>
					</table>

					<div id="solr_sub_bookmarks">
						<table style="width: 650px;">
							<tr style="height: 30px;">
								<td colspan="2">
									<div id="nextant_bookmarks_appdisabled">
										<?php p($l->t('The App Bookmarks is not installed/enabled.')); ?>
									</div>
									<div id="nextant_bookmarks_appenabled">
										<?php p($l->t('The App Bookmarks is enabled, your bookmarks will be index.')); ?>
									</div>
								</td>
							</tr>
							<tr style="height: 30px;">
								<td class="nextant_admin_left">
	    <?php p($l->t('Last index:')) ?></td>
								<td><div id="solr_index_bookmarks_last"></div></td>
							</tr>

						</table>
					</div>

					<table style="width: 650px;">

						<tr>
							<td>&nbsp;</td>
						</tr>
						<tr class="nextant_admin_head">
							<td><div id="nextant_saving_status"><?php p($l->t('Saving')); ?></div>
								<div id="nextant_saving_check"><?php p($l->t('Checking')); ?></div></td>
							<td class="nextant_admin_head"><?php p($l->t('Nextant Status')); ?></td>
						</tr>

						<tr style="height: 30px;">
							<td class="nextant_admin_left">					
	    <?php p($l->t('Resource Level:')); ?>
						</td>
							<td colspan="2"><select name="solr_resource_level"
								id="solr_resource_level" style="width: 200px">
									<option value="5"><?php p($l->t('Higher performance')); ?></option>
									<option value="4"><?php p($l->t('High performance')); ?></option>
									<!-- <option value="3"><?php p($l->t('Medium performance')); ?></option> -->
									<option value="2"><?php p($l->t('Low performance')); ?></option>
									<option value="1"><?php p($l->t('Lower performance')); ?></option>
							</select></td>
						</tr>

						<tr style="height: 30px;">
							<td class="nextant_admin_left">					
	    <?php p($l->t('Live Index:')); ?>
						</td>
							<td colspan="2"><select id="solr_index_live" style="width: 200px">
									<option value="0"><?php p($l->t('Disabled')); ?></option>
									<!-- <option value="1"><?php p($l->t('Using Semaphore')); ?></option>  -->
									<option value="2"><?php p($l->t('Using Database')); ?></option>
							</select> <!-- 							<input type="text" id="solr_index_live_queuekey"
								style="width: 100px; font-size: 12px;" /> --></td>
						</tr>

						<tr style="height: 30px;">
							<td class="nextant_admin_left" style="text-valign: top;">
	    <?php p($l->t('Minimum Background Index delay:')) ?></td>
							<td><input type="text" name="solr_index_delay_min"
								id="solr_index_delay_min" value="2"
								style="width: 50px; margin-right: 10px;" /><?php p($l->t('hours')); ?>
								</td>
						</tr>

						<tr style="height: 30px;">
							<td class="nextant_admin_left" style="text-valign: top;">
	    <?php p($l->t('Maximum Background Index delay:')) ?></td>
							<td><input type="text" name="solr_index_delay_max"
								id="solr_index_delay_max" value="2"
								style="width: 50px; margin-right: 10px;" /><?php p($l->t('days')); ?>
								</td>
						</tr>

						<tr style="height: 30px;">
							<td class="nextant_admin_left">					
	    <?php p($l->t('Nextcloud Cron:')); ?>
						</td>
							<td colspan="2"><input type="checkbox" name="solr_use_cron"
								id="solr_use_cron" value="1" style="margin: 10px;" />
						
						</tr>

						<tr style="height: 30px;">
							<td class="nextant_admin_left">
	    <?php p($l->t('Number of documents:')) ?></td>
							<td><div id="solr_current_docs"></div></td>
						</tr>
						<tr style="height: 30px;">
							<td class="nextant_admin_left">
	    <?php p($l->t('Number of segments:')) ?></td>
							<td><div id="solr_current_segments"></div></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
						</tr>
						<tr style="height: 30px;">

							<td></td>
							<td>
								<div id="nextant_first_index"
									style="width: 270px; font-size: 12px; white-space: normal;">
									<i>
									<?php p($l->t('it is recommended to do the very first indexing of your files using the ./occ nextant:index command.')); ?>
									<?php p($l->t('However, you can force it to be started as a background process.')); ?>
									</i> <br />
									<button type="button" id="nextant_force_first_index"
										style="width: 270px"><?php p($l->t('Force first index as a cronjob')) ?></button>
								</div>
								<button type="button" id="nextant_force_index"
									style="width: 270px"><?php p($l->t('Force index')) ?></button>
								<div id="nextant_index_scheduled">
									<i><?php p($l->t('Indexing is scheduled within the next few hours (cron)')); ?></i>
								</div>
								<div id="nextant_index_inprogress">
									<i><?php p($l->t('Indexing in progress')); ?></i>
								</div>
							</td>
						</tr>

					</table>
				</div>
			</td>
			<td
				style="padding-left: 30px; padding-top: 40px; vertical-align: top; position: relative;">
				<div id="nextant-display" class="nextant-box">
					<div id="ping" class="nextant-display-line">
						<img id="icon_check" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'check.png')); ?>" />
						<img id="icon_fail" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'fail.png')); ?>" />
						<div id="text" class="nextant_display_text"></div>
					</div>

					<div id="schema" class="nextant-display-line" style="top: 40px;">
						<img id="icon_check" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'check.png')); ?>" />
						<img id="icon_fail" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'fail.png')); ?>" />
						<div id="text" class="nextant_display_text"></div>
					</div>

					<div id="extract" class="nextant-display-line" style="top: 70px;">
						<img id="icon_check" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'check.png')); ?>" />
						<img id="icon_fail" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'fail.png')); ?>" />
						<div id="text" class="nextant_display_text"></div>
					</div>

					<div id="update" class="nextant-display-line" style="top: 100px;">
						<img id="icon_check" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'check.png')); ?>" />
						<img id="icon_fail" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'fail.png')); ?>" />
						<div id="text" class="nextant_display_text"></div>
					</div>

					<div id="search" class="nextant-display-line" style="top: 130px;">
						<img id="icon_check" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'check.png')); ?>" />
						<img id="icon_fail" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'fail.png')); ?>" />
						<div id="text" class="nextant_display_text"></div>
					</div>

					<div id="delete" class="nextant-display-line" style="top: 160px;">
						<img id="icon_check" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'check.png')); ?>" />
						<img id="icon_fail" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'fail.png')); ?>" />
						<div id="text" class="nextant_display_text"></div>
					</div>

					<div id="save" class="nextant-display-line" style="top: 200px;">
						<img id="icon_check" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'check.png')); ?>" />
						<img id="icon_fail" class="nextant_display_icon"
							src="<?php print_unescaped(OCP\image_path('nextant', 'fail.png')); ?>" />
						<div id="text" class="nextant_display_text"></div>
					</div>

				</div>

				<div id="nextant-filters" class="nextant-box">

					<div id="nextant_saving_files_filters"
						style="position: absolute; top: 10px; right: 25px;"><?php p($l->t('Saving')); ?></div>

					<div class="solr_filters_item_large solr_filters_title"><?php p($l->t('Type of files to extract')); ?></div>

					<div class="solr_filters_item_large">
						<input type="checkbox" name="solr_filters_text"
							id="solr_filters_text" value="1" style="margin: 10px;"> <?php p($l->t('Text File (Text, HTML, Subtitles, Source Code…)')); ?>
					</div>
					<div class="solr_filters_item">
						<input type="checkbox" name="solr_filters_pdf"
							id="solr_filters_pdf" value="1" style="margin: 10px;"> <?php p($l->t('EPUB / PDF / RTF')); ?>
					</div>
					<div class="solr_filters_item">
						<input type="checkbox" name="solr_filters_office"
							id="solr_filters_office" value="1" style="margin: 10px;"> <?php p($l->t('Office Documents')); ?>
					</div>
					<div class="solr_filters_item">
						<input type="checkbox" name="solr_filters_image"
							id="solr_filters_image" value="1" style="margin: 10px;"> <?php p($l->t('Image (JPEG, TIFF)')); ?>
					</div>
					<div class="solr_filters_item">
						<input type="checkbox" name="solr_filters_audio"
							id="solr_filters_audio" value="1" style="margin: 10px;"> <?php p($l->t('Audio File (MP3, FLAC)')); ?>
					</div>

					<div class="solr_filters_item_large solr_filters_title"
						style="margin-top: 15px;"><?php p($l->t('Extensions you wish to ignore (.java .xml)')); ?></div>
					<div class="solr_filters_item_large">
						<textarea name="" style="width: 435px; height: 75px;"
							id="solr_filters_extensions"></textarea>
					</div>

				</div>

			</td>
		</tr>

	</table>

</div>