ElasticGeo provides a GeoTools data store that allows geospatial features from an Elasticsearch index to be published via OGC services using GeoServer.
Highlighting support does not appear to be implemented?
Not sure if this was the best approach but I went ahead and implemented it similar to how aggregations work using the query hints. If a highlighted property is specified in the sourceIncludes then its removed in the request to avoid returning the full content. The highlighted content takes the place of the full content in the ElasticFeatureReader. This means you cannot return the full content and highlighted content within the same query.
Highlighting support does not appear to be implemented?
Not sure if this was the best approach but I went ahead and implemented it similar to how aggregations work using the query hints. If a highlighted property is specified in the sourceIncludes then its removed in the request to avoid returning the full content. The highlighted content takes the place of the full content in the ElasticFeatureReader. This means you cannot return the full content and highlighted content within the same query.