We're updating the issue view to help you get more done. 

Make Elasticsearch configuration properties index-scoped where feasible

Description

We're having some constants declared to define Elasticsearch configuration properties, which currently expect a single global value, for example (but not only):

1 2 public static final String SERVER_URI = "hibernate.search.elasticsearch.host"; public static final String INDEX_MANAGEMENT_STRATEGY = "hibernate.search.elasticsearch.index_management_strategy";

To be consistent with the other configuration properties, these should rather be parsed independently on a per-backend base.
So the constants would only define the post-fix, and we'd document as valid configuration options properties like:

1 2 3 hibernate.search.default.elasticsearch.host = localhost hibernate.search.animals.elasticsearch.host = otherhost hibernate.search.animals.a.elasticsearch.host = AnimalsShardA

This would imply that we want to support using multiple Elasticsearch clusters, which is currently not a given and should be discussed first.

Even if we want to support a single Elasticsearch cluster, scoping the INDEX_MANAGEMENT_STRATEGY is probably a good idea.

Environment

None

Status

Assignee

Gunnar Morling

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Priority

Blocker