mstein / elasticsearch-grails-plugin

ElasticSearch grails plugin
Based on Graeme Rocher initial stub. Note that it is still in early stage.
Other
62 stars 164 forks source link

geo point mapping and indexing support #41

Closed jaspeen closed 11 years ago

jaspeen commented 12 years ago

Supports reference to domain class with lat/lon fields and single string field with format "lat, lon"

class GeoPoint {
    Double lat
    Double lon

    static searchable = {
        root false
    }
}

class Building {
    GeoPoint location

    static searchable = {
        location geoPoint: true
    }
}