@@ -331,9 +331,9 @@ token, i.e. case conversion and accent removal.
331
331
The * properties* allowed for this Analyzer are an object with the following
332
332
attributes:
333
333
334
- - ` locale ` (string): a locale in the format ` language[_COUNTRY] `
335
- (square brackets denote optional parts), e.g. ` "de" ` or ` "en_US" ` . See the
336
- [ ICU Documentation] ( https://unicode-org.github.io/icu/userguide/locale/ ) {: target ="_ blank"}
334
+ - ` locale ` (string): a locale in the format ` language[_COUNTRY][_VARIANT] `
335
+ (square brackets denote optional parts), e.g. ` "de" ` , ` "en_US" ` , or ` "es__TRADITIONAL" ` .
336
+ See the [ ICU Documentation] ( https://unicode-org.github.io/icu/userguide/locale/ ) {: target ="_ blank"}
337
337
for details. The locale is forwarded to ICU without checks.
338
338
An invalid locale does not prevent the creation of the Analyzer.
339
339
Also see [ Supported Languages] ( #supported-languages ) .
@@ -496,9 +496,9 @@ case conversion and accent removal.
496
496
The * properties* allowed for this Analyzer are an object with the following
497
497
attributes:
498
498
499
- - ` locale ` (string): a locale in the format ` language[_COUNTRY] `
500
- (square brackets denote optional parts), e.g. ` "de" ` or ` "en_US" ` . See the
501
- [ ICU Documentation] ( https://unicode-org.github.io/icu/userguide/locale/ ) {: target ="_ blank"}
499
+ - ` locale ` (string): a locale in the format ` language[_COUNTRY][_VARIANT] `
500
+ (square brackets denote optional parts), e.g. ` "de" ` , ` "en_US" ` , or ` "es__TRADITIONAL" ` .
501
+ See the [ ICU Documentation] ( https://unicode-org.github.io/icu/userguide/locale/ ) {: target ="_ blank"}
502
502
for details. The locale is forwarded to ICU without checks.
503
503
An invalid locale does not prevent the creation of the Analyzer.
504
504
Also see [ Supported Languages] ( #supported-languages ) .
@@ -635,8 +635,8 @@ The *properties* allowed for this Analyzer are an object with the following
635
635
attributes:
636
636
637
637
- ` locale ` (string): a locale in the format
638
- ` language[_COUNTRY][_VARIANT][@keywords] ` (square brackets denote optional
639
- parts), e.g. ` "de" ` , ` "en_US" ` , or ` fr@collation=phonebook ` . See the
638
+ ` language[_COUNTRY][_VARIANT][@keywords] ` (square brackets denote optional parts),
639
+ e.g. ` "de" ` , ` "en_US" ` , ` "es__TRADITIONAL "` , or ` fr@collation=phonebook ` . See the
640
640
[ ICU Documentation] ( https://unicode-org.github.io/icu/userguide/locale/ ) {: target ="_ blank"}
641
641
for details. The locale is forwarded to ICU without checks.
642
642
An invalid locale does not prevent the creation of the Analyzer.
@@ -1267,6 +1267,39 @@ attributes:
1267
1267
- ` maxCells ` (number, _ optional_ ): maximum number of S2 cells (default: 20)
1268
1268
- ` minLevel ` (number, _ optional_ ): the least precise S2 level (default: 4)
1269
1269
- ` maxLevel ` (number, _ optional_ ): the most precise S2 level (default: 23)
1270
+ - ` legacy ` (boolean, _ optional_ ):
1271
+ This option controls how GeoJSON Polygons are interpreted (introduced in v3.10.5).
1272
+ Also see [ Legacy Polygons] ( indexing-geo.html#legacy-polygons ) and
1273
+ [ GeoJSON interpretation] ( indexing-geo.html#geojson-interpretation ) .
1274
+
1275
+ - If ` legacy ` is ` true ` , the smaller of the two regions defined by a
1276
+ linear ring is interpreted as the interior of the ring and a ring can at most
1277
+ enclose half the Earth's surface.
1278
+ - If ` legacy ` is ` false ` , the area to the left of the boundary ring's
1279
+ path is considered to be the interior and a ring can enclose the entire
1280
+ surface of the Earth.
1281
+
1282
+ The default is ` false ` .
1283
+
1284
+ {% hint 'warning' %}
1285
+ If you use ` geojson ` Analyzers and upgrade from a version below 3.10 to a
1286
+ version of 3.10 or higher, the interpretation of GeoJSON Polygons changes.
1287
+
1288
+ If you have polygons in your data that mean to refer to a relatively small
1289
+ region but have the boundary running clockwise around the intended interior,
1290
+ they are interpreted as intended prior to 3.10, but from 3.10 onward, they are
1291
+ interpreted as "the other side" of the boundary.
1292
+
1293
+ Whether a clockwise boundary specifies the complement of the small region
1294
+ intentionally or not cannot be determined automatically. Please test the new
1295
+ behavior manually.
1296
+
1297
+ If you require the old behavior, upgrade to at least 3.10.5, drop your
1298
+ ` geojson ` Analyzers, and create new ones with ` legacy ` set to ` true ` .
1299
+ If these Analyzers are used in ` arangosearch ` Views, then they need to be
1300
+ dropped as well before dropping the Analyzers, and recreated after creating
1301
+ the new Analyzers.
1302
+ {% endhint %}
1270
1303
1271
1304
** Examples**
1272
1305
0 commit comments