You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually looking at ElasticSearchMappingFactory#L197 I have found out that if converter is string representing elasticsearch type, it is interpreted as type. Like this:
class Domain {
OffsetDateTime date
static searchable = {
date converter: 'date'
}
}
+1. I have an 'Address' domain with the 'country' property as a String which gets mapped as 'text'. So the only way I can get aggregations on Elastic is by changing it to an enum to get the 'keyword' type.
Lots of changes to my code (arguably for the better but still...)
It would be great if it was possible to explicitly specify elasticsearch type for the field.
Something like this:
The text was updated successfully, but these errors were encountered: