noamt / elasticsearch-grails-plugin

The revived ElasticSearch grails plugin
Based on Graeme Rocher initial stub. Note that it is still in early stage.
Other
63 stars 83 forks source link

FEATURE: elasticSearchService.search return object instead of Map #218

Closed sdelamo closed 6 years ago

sdelamo commented 6 years ago

It would be nice if elasticSearchService.search return an object instead of a Map.

Something like:

class ElasticSearchResult {
    long total
    def searchResults
    def highlight
    def scores
    def sort
    def aggregations
}

With types for the previous properties instead of def.