MarkLogic 12 EA 1 Product Documentation
admin.databaseGeospatialElementAttributePairIndexadmin.databaseGeospatialElementAttributePairIndex(
parent-namespace as String?,
parent-localname as String,
latitude-namespace as String?,
latitude-localname as String,
longitude-namespace as String?,
longitude-localname as String,
coordinate-system as String,
range-value-positions as Boolean,
[invalid-values as String]
) as element(db.geospatialElementAttributePairIndex)
Summary
This function constructs a geospatial element attribute
pair index specification.
Parameters |
parent-namespace |
The namespace of the parent element for the attribute.
|
parent-localname |
The local name of the parent element for the attribute.
|
latitude-namespace |
The namespace for the element containing the latitude.
|
latitude-localname |
The local name for the element containing the latitude.
|
longitude-namespace |
The namespace for the element containing the longitude.
|
longitude-localname |
The local name for the element containing the longitude.
|
coordinate-system |
The coordinate system. Must be one of wgs84 ,
wgs84/double , etrs89 ,
etrs89/double , raw , raw/double .
|
range-value-positions |
A boolean specifying whether to maintain value positions
in this index (used with co-occurrences).
|
invalid-values |
An option to handle values that do not meet the range index type.
Must be one of: reject (default), ignore .
|
Example
const admin = require('/MarkLogic/admin.xqy');
admin.databaseGeospatialElementAttributePairIndex("/my/namespace",
"elementname", "/my/namespace", "lat",
"/my/namespace", "long", "wgs84", fn.false() )
//returns the geospatial element attribute pair index specification
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.