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

Getting started and vector tiles #50

Closed westover closed 6 years ago

westover commented 7 years ago

I am trying to get started with this plugin and trying to understand its configuration. We have some time dependent spatial data which is being stored in elastic search. I have a specific doctype for these objects. This ends up meaning that the data is split across different indices. Do I specify a specific index and then a regex for the search indices?

sjudeng commented 7 years ago

If you're using index aliases you can use the alias for the index name. With the support for index aliases (added in #47) the search_indices parameter can maybe be removed. But your description is how it would be used if you're not using index aliases ... the index_name would be one of the indices (e.g. the_index_2017) so the plugin can read the schema and the search_indices would be the relevant multi-index expression (e.g. the_index*).

westover commented 7 years ago

Do you have a place where I can look to see what a typical query would look like when a TMS request is made through GWC?

sjudeng commented 7 years ago

You can turn up logging to see the Elasticsearch queries being executed for your requests. See https://github.com/ngageoint/elasticgeo/blob/master/gs-web-elasticsearch/doc/index.rst#configuring-logging.

westover commented 7 years ago

Are there any plans to be able to specify doctype?

sjudeng commented 7 years ago

The index is configured when you create the Elasticsearch data store and you choose the type when you create the layer from the store (see http://docs.geoserver.org/stable/en/user/data/webadmin/layers.html#add-a-layer).