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

elasticgeo doesn't support Elasticsearch index aliases #45

Closed climbingsavage closed 7 years ago

climbingsavage commented 7 years ago

Using Geoserver 2.9.1 and Elasticsearch 2.4.1 Attempting to create a new store using an Elasticsearch index alias name. Geoserver successfully allows the creation of the store, but no layers are presented in the "Publish" screen. Works as expected when the actual index name is used. However, this precludes the ability to publish time-based indexes that are aliased to a single name, i.e. Elasticsearch indexes named "data_week_1", "data_week_2", "data_week_3" are aliased to "data"

sjudeng commented 7 years ago

As a workaround try using the search_indices store parameter. Use one of the indices (e.g. "data_week_1") for index_name and the pattern (e.g. "data_week*") for the search_indices parameter.

sjudeng commented 7 years ago

Added support for index aliases (see 2.11.2-RC1 release) so the above workaround shouldn't be necessary. Just use your alias ("data_week") for the index name.

sjudeng commented 7 years ago

This should be resolved now as described above. Please reopen if there's still an issue.