mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-07 09:39:04 +08:00
357 B
357 B
可用于校验是否存在名称为指定名称的索引
@Test
public void testExistsIndex(){
// 测试是否存在指定名称的索引
String indexName = Document.class.getSimpleName().toLowerCase();
boolean existsIndex = documentMapper.existsIndex(indexName);
Assert.assertTrue(existsIndex);
}