* Return indexNames and indexType
* @return
*/
public IndexQueryPath getIndexPath() {
IndexType indexTypeAnnotation = this.getClass().getAnnotation(IndexType.class);
if(indexTypeAnnotation == null) {
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();