easy-es/docs/en/exists-index.md
2022-03-17 11:01:44 +08:00

11 lines
320 B
Markdown

> Can be used to verify whether there is an index with the specified name
```java
@Test
public void testExistsIndex(){
String indexName = Document.class.getSimpleName().toLowerCase();
boolean existsIndex = documentMapper.existsIndex(indexName);
Assert.assertTrue(existsIndex);
}
```