ngageoint / elasticgeo

ElasticGeo provides a GeoTools data store that allows geospatial features from an Elasticsearch index to be published via OGC services using GeoServer.
GNU General Public License v3.0
168 stars 85 forks source link

Highlighting Support #91

Open dclemenzi opened 5 years ago

dclemenzi commented 5 years ago

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.