IIndexService.java 846 字节
Newer Older
1 2 3 4 5
package com.central.admin.service;

import com.central.admin.model.IndexDto;
import com.central.common.model.PageResult;

6
import java.io.IOException;
7 8 9 10 11 12 13 14 15 16 17 18
import java.util.Map;

/**
 * 索引
 *
 * @author zlt
 * @date 2019/4/23
 */
public interface IIndexService {
    /**
     * 创建索引
     */
19
    boolean create(IndexDto indexDto) throws IOException;
20 21 22 23 24

    /**
     * 删除索引
     * @param indexName 索引名
     */
25
    boolean delete(String indexName) throws IOException;
26 27 28 29 30 31

    /**
     * 索引列表
     * @param queryStr 搜索字符串
     * @param indices 默认显示的索引名
     */
32
    PageResult<Map<String, String>> list(String queryStr, String indices) throws IOException;
33 34 35 36 37

    /**
     * 显示索引明细
     * @param indexName 索引名
     */
38
    Map<String, Object> show(String indexName) throws IOException;
39
}