You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,9 @@ built_in_search_page: true
68
68
enable_admin_page_events: true
69
69
search_type: auto
70
70
fuzzy: false
71
+
distance: 2
71
72
phrases: true
72
-
stemmer: default
73
+
stemmer: 'no'
73
74
display_route: true
74
75
display_hits: true
75
76
display_time: true
@@ -103,14 +104,16 @@ The configuration options are as follows:
103
104
* `boolean` - supports `or` or `minus`. e.g. `foo -bar`
104
105
* `auto` - automatically detects whether to use `basic` or `boolean`
105
106
* `fuzzy` - matches if the words are 'close' but not necessarily exact matches
107
+
* `distance` - Levenshtein distance of fuzzy search. It represents the amount of characters which need to be changed, removed, or added in a word in order it to match the search keyword. Increasing the distance produces more search results but decreases the accuracy of the search.
106
108
* `phrases` - automatically handle phrases support
107
109
* `stemmer` - can be one of these types:
108
-
* `default` - Porter stemmer for English language
109
110
* `no` - no stemmer
110
111
* `arabic` - Arabic language
112
+
* `croatian` - Croatian language
111
113
* `german` - German language
112
114
* `italian` - Italian language
113
115
* `porter` - Porter stemmer for English language
116
+
* `portuguese` - Portuguese language
114
117
* `russian` - Russian language
115
118
* `ukrainian` - Ukrainian language
116
119
* `display_route` - display the route in the search results
Copy file name to clipboardExpand all lines: blueprints.yaml
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
name: TNT Search
2
2
type: plugin
3
3
slug: tntsearch
4
-
version: 3.3.1
4
+
version: 3.4.0
5
5
testing: false
6
6
description: Powerful indexed-based full text search engine powered by TNTSearch
7
7
icon: binoculars
@@ -150,13 +150,20 @@ form:
150
150
type: toggle
151
151
label: Fuzzy Search
152
152
highlight: 1
153
-
default: 1
153
+
default: 0
154
154
options:
155
155
1: Enabled
156
156
0: Disabled
157
157
validate:
158
158
type: bool
159
159
160
+
distance:
161
+
type: number
162
+
size: x-small
163
+
label: Levenshtein distance of fuzzy search
164
+
help: It represents the amount of characters which need to be changed, removed, or added in a word in order it to match the search keyword. Increasing the distance produces more search results but decreases the accuracy of the search.
165
+
default: 2
166
+
160
167
phrases:
161
168
type: toggle
162
169
label: Match quoted phrases
@@ -174,13 +181,15 @@ form:
174
181
classes: fancy
175
182
label: Stemmer
176
183
help: An automated process which produces a base string in an attempt to represent related words. If your content is not in the language listed, for best search results it is recommended to disable the stemmer.
Copy file name to clipboardExpand all lines: vendor/autoload.php
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,24 @@
2
2
3
3
// autoload.php @generated by Composer
4
4
5
+
if (PHP_VERSION_ID < 50600) {
6
+
if (!headers_sent()) {
7
+
header('HTTP/1.1 500 Internal Server Error');
8
+
}
9
+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10
+
if (!ini_get('display_errors')) {
11
+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
0 commit comments