Last active
July 5, 2016 21:20
-
-
Save jmlw/0a99a814d4c6570cb8f563dc1f56d821 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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