jmlw
7/5/2016 - 9:14 PM

SpringDataElasticsearchStringGeoPoint.java

package org.springframework.data.elasticsearch.core.geo;

import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.GeoPointField;

@Document(indexName = "test-geo-index", type = "geo-annotation-point-type", shards = 1, replicas = 0, refreshInterval = "-1")
public class LocationMarkerEntity {
	// some code omitted for berevity
	@GeoPointField
	private String locationAsString;

	@GeoPointField
	private double[] locationAsArray;
	// omitted
}