@Retention(value=RUNTIME) public @interface GeospatialPathIndexProperty
import com.marklogic.client.pojo.annotation.GeospatialPathIndexProperty;
public class MyClass {
@GeospatialPathIndexProperty
public String myGeoProperty;
}
or with a public getter method:
public class MyClass {
private String myGeoProperty;
@GeospatialPathIndexProperty
public String getMyGeoProperty() {
return myGeoProperty;
}
// ... setter methods ...
}
or with a public setter method:
public class MyClass {
private String myGeoProperty;
// ... getter methods ...
@GeospatialPathIndexProperty
public void setMyGeoProperty(String myGeoProperty) {
this.myGeoProperty = myGeoProperty;
}
}
Run
GenerateIndexConfig to generate
a package that can be used by administrators to create the indexes in
MarkLogic Server.Copyright © 2013-2016 MarkLogic Corporation.