Logger.error("ElasticSearch : Class " + this.getClass().getCanonicalName() + " no contain @IndexType(name) annotation ");
}
String indexType = indexTypeAnnotation.name();
String indexName = IndexService.INDEX_DEFAULT;
IndexName indexNameAnnotation = this.getClass().getAnnotation(IndexName.class);
if(indexNameAnnotation != null) {
indexName = indexNameAnnotation.name();
}
return new IndexQueryPath(indexName, indexType);
}