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

320 B

Can be used to verify whether there is an index with the specified name

    @Test
    public void testExistsIndex(){
        String indexName = Document.class.getSimpleName().toLowerCase();
        boolean existsIndex = documentMapper.existsIndex(indexName);
        Assert.assertTrue(existsIndex);
    }