public class GeoIndexOptions extends IndexOptions<GeoIndexOptions>
Constructor and Description |
---|
GeoIndexOptions() |
Modifier and Type | Method and Description |
---|---|
protected GeoIndexOptions |
fields(Iterable<String> fields) |
GeoIndexOptions |
geoJson(Boolean geoJson) |
protected Iterable<String> |
getFields() |
Boolean |
getGeoJson() |
Boolean |
getLegacyPolygons() |
protected GeoIndexOptions |
getThis() |
protected IndexType |
getType() |
GeoIndexOptions |
legacyPolygons(Boolean legacyPolygons) |
getInBackground, getName, inBackground, name
protected GeoIndexOptions getThis()
getThis
in class IndexOptions<GeoIndexOptions>
protected GeoIndexOptions fields(Iterable<String> fields)
fields
- A list of attribute pathsprotected IndexType getType()
public Boolean getGeoJson()
public GeoIndexOptions geoJson(Boolean geoJson)
geoJson
- If a geo-spatial index on a location is constructed and geoJson is true, then the order within the
array is longitude followed by latitude. This corresponds to the format described inpublic Boolean getLegacyPolygons()
public GeoIndexOptions legacyPolygons(Boolean legacyPolygons)
legacyPolygons
- If `true` will use the old rules (pre-3.10) for the parsing GeoJSON polygons. This
allows you to let old indexes produce the same, potentially wrong results as before an
upgrade. A geo index with `legacyPolygons` set to `false` will use the new, correct and
consistent method for parsing of GeoJSON polygons.
See Legacy Polygons.Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.