Skip to content

Instantly share code, notes, and snippets.

@jmlw
Last active July 5, 2016 21:20
Show Gist options
  • Select an option

  • Save jmlw/0a99a814d4c6570cb8f563dc1f56d821 to your computer and use it in GitHub Desktop.

Select an option

Save jmlw/0a99a814d4c6570cb8f563dc1f56d821 to your computer and use it in GitHub Desktop.
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment