oarepo-runtime 1.5.41__py3-none-any.whl → 1.5.42__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oarepo_runtime/records/systemfields/icu.py +24 -1
- {oarepo_runtime-1.5.41.dist-info → oarepo_runtime-1.5.42.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.41.dist-info → oarepo_runtime-1.5.42.dist-info}/RECORD +7 -7
- {oarepo_runtime-1.5.41.dist-info → oarepo_runtime-1.5.42.dist-info}/WHEEL +1 -1
- {oarepo_runtime-1.5.41.dist-info → oarepo_runtime-1.5.42.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.41.dist-info → oarepo_runtime-1.5.42.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.41.dist-info → oarepo_runtime-1.5.42.dist-info}/top_level.txt +0 -0
@@ -146,6 +146,12 @@ class ICUSearchField(ICUField):
|
|
146
146
|
"tokenizer": "standard",
|
147
147
|
"filter": ["stemming_filter_en"],
|
148
148
|
},
|
149
|
+
"ascii_folding_analyzer": {
|
150
|
+
"tokenizer": "standard",
|
151
|
+
"filter": [
|
152
|
+
"ascii_folding_filter"
|
153
|
+
]
|
154
|
+
},
|
149
155
|
}
|
150
156
|
|
151
157
|
default_stemming_filters = {
|
@@ -159,6 +165,10 @@ class ICUSearchField(ICUField):
|
|
159
165
|
"name": "english",
|
160
166
|
"language": "english",
|
161
167
|
},
|
168
|
+
"ascii_folding_filter": {
|
169
|
+
"type": "asciifolding",
|
170
|
+
"preserve_original": True
|
171
|
+
}
|
162
172
|
}
|
163
173
|
|
164
174
|
def __init__(self, source_field, key=None):
|
@@ -170,11 +180,24 @@ class ICUSearchField(ICUField):
|
|
170
180
|
self.attr_name: {
|
171
181
|
"type": "object",
|
172
182
|
"properties": {
|
183
|
+
# normal stemming
|
173
184
|
lang: setting.get(
|
174
185
|
"search",
|
175
186
|
{
|
176
187
|
"type": "text",
|
177
|
-
"
|
188
|
+
"boost": 1,
|
189
|
+
"fields": {
|
190
|
+
"stemmed": {
|
191
|
+
"type": "text",
|
192
|
+
"analyzer": f"stemming_analyzer_{lang}",
|
193
|
+
"boost": 0.5,
|
194
|
+
},
|
195
|
+
"ascii_folded": {
|
196
|
+
"type": "text",
|
197
|
+
"analyzer": "ascii_folding_analyzer",
|
198
|
+
"boost": 0.3,
|
199
|
+
},
|
200
|
+
}
|
178
201
|
},
|
179
202
|
)
|
180
203
|
for lang, setting in self.languages.items()
|
@@ -58,7 +58,7 @@ oarepo_runtime/records/relations/pid_relation.py,sha256=zJjSf_ocFBViYsOuMMZLbQZp
|
|
58
58
|
oarepo_runtime/records/systemfields/__init__.py,sha256=SPaMWM6t-azz6gZLUKvvXbOyE2_-LW6i_szQk8nhbAc,455
|
59
59
|
oarepo_runtime/records/systemfields/featured_file.py,sha256=MbSaYR130_o5S9gEOblnChq-PVK4xGPGpSCrzwG3cwc,1720
|
60
60
|
oarepo_runtime/records/systemfields/has_draftcheck.py,sha256=4JkMEefPLpqtPtlTgK3UT0KzTRgyw5_Qtkss2qcz5xk,1643
|
61
|
-
oarepo_runtime/records/systemfields/icu.py,sha256=
|
61
|
+
oarepo_runtime/records/systemfields/icu.py,sha256=CINwl5amyW9fuSd89Nz5bm9iSeyNX8xdjZ6sUakG71Q,6799
|
62
62
|
oarepo_runtime/records/systemfields/mapping.py,sha256=tXOK_jkdY1pOUO7_VfChfDNB8UTi21GUXaidpugTnO8,1017
|
63
63
|
oarepo_runtime/records/systemfields/owner.py,sha256=U7CD71Ve9midaH72pV4A4_I7AdywqZW0BSRHAK10_qA,3944
|
64
64
|
oarepo_runtime/records/systemfields/record_status.py,sha256=U3kem4-JkNsT17e0iAl3HIAZ2MvO5lY_0U757aZvTKE,935
|
@@ -116,9 +116,9 @@ oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
116
116
|
oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
|
117
117
|
oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
|
118
118
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
119
|
-
oarepo_runtime-1.5.
|
120
|
-
oarepo_runtime-1.5.
|
121
|
-
oarepo_runtime-1.5.
|
122
|
-
oarepo_runtime-1.5.
|
123
|
-
oarepo_runtime-1.5.
|
124
|
-
oarepo_runtime-1.5.
|
119
|
+
oarepo_runtime-1.5.42.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
120
|
+
oarepo_runtime-1.5.42.dist-info/METADATA,sha256=CkuQUP34z5vt1hqEP4g12GJw2Axu7ThaKs65XPXMtMw,4680
|
121
|
+
oarepo_runtime-1.5.42.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
122
|
+
oarepo_runtime-1.5.42.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
|
123
|
+
oarepo_runtime-1.5.42.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
124
|
+
oarepo_runtime-1.5.42.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|