Allow custom Elasticsearch type name

Description

At the moment it is possible to define only index name for entity, and when elastic-search mapping is created for example, we will have the entity class name as type, ex (org.tbounsiar.manager.api.model.Client), and if index name is not defined, the default name of created index will be the class name to lower case, ex (org.tbounsiar.manager.api.model.client), at the end we will have an elastic search mapping like :

which is not so pretty, It would be beneficial to define a default value for index (hibernatesearch) for example, and add possibility to add index type (@Indexed(index = "manager", type = "Client")), and if the index type is not defined the default one will be the class name only (without package).

Activity

Show:

Yoann Rodière January 18, 2019 at 3:17 PM

Custom type names are going to be deprecated in Elasticsearch 7, and removed in 8: https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#_schedule_for_removal_of_mapping_types

I will close this ticket as out-of-date.

Yoann Rodière September 7, 2018 at 8:51 AM

Note for future reference: this should be fixed once we implement

Out of Date

Details

Assignee

Reporter

Labels

Components

Priority

Created May 10, 2018 at 5:03 PM
Updated January 18, 2019 at 3:17 PM
Resolved January 18, 2019 at 3:17 PM