I have two domain classes that mirror the GeoPoint examples exactly. Yet, in my tests I keep getting the error
QueryParsingException[[package] failed to find geo_point field [location]]; }
My Building class is
class Building {
GeoPoint location
static searchable = {
location geoPoint: true, component: true
}
}
I do create the GeoPoint in a beforeValidate block, but it appears to be indexed with the correct data:
Indexing class package.Building (index: package , type: building) of id 57 and source {"category":null,"location":{"id":2,"class":"package.GeoPoint","lat":40.15,"lon":5.699999999999999}
I have two domain classes that mirror the GeoPoint examples exactly. Yet, in my tests I keep getting the error
QueryParsingException[[package] failed to find geo_point field [location]]; }
My Building class isI do create the GeoPoint in a beforeValidate block, but it appears to be indexed with the correct data:
Indexing class package.Building (index: package , type: building) of id 57 and source {"category":null,"location":{"id":2,"class":"package.GeoPoint","lat":40.15,"lon":5.699999999999999}
I am at a loss for what is going wrong.