| 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 :
{
"org.tbounsiar.manager.api.model.client": {
"aliases": {},
"mappings": {
"org.tbounsiar.manager.api.model.Client": {
}
}
}
}
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). |