package com.walker.support.es.impl; import com.walker.support.es.SaveData; import com.walker.support.es.SearchService; import java.util.List; public class FullTextEmptyService implements SearchService { @Override public Object createAttachmentProcessor(String description) { return null; } /** * 创建一个索引(库),如果已存在则返回false * * @param name 索引名字 * @param type 类型,为空则系统默认为值:table。【该字段废弃】 * @param json * @return */ @Override public boolean createIndex(String name, String type, String json) { return false; } @Override public boolean existIndex(String name, String type) throws Exception { return false; } @Override public String search(String index, String queryText, int dataSecurity, String securityInfo, int pageIndex, int pageSize) throws Exception { return null; } @Override public String searchDataById(String index, String _id) throws Exception { return null; } /** * 只加载一个文件数据 * * @param index * @param _id * @return * @throws Exception */ @Override public String searchFileById(String index, String _id) throws Exception { return null; } /** * 查询最近搜索关联集合 * * @param index * @param keyWord * @return * @throws Exception */ @Override public List searchRecent(String index, String keyWord) throws Exception { return null; } @Override public void putContent(String index, List datas) throws Exception { } @Override public void removeIndex(String index) throws Exception { } @Override public List getKeyWordList(String index, String _id, String field) throws Exception { return null; } /** * 设置分词方式:ik_max_word | ik_smart,默认ik_max_word

*
     * 1. Constants.TOKEN_TYPE_MAX
     * 2. Constants.TOKEN_TYPE_SMART
     * 
* * @param tokenType */ @Override public void setTokenType(String tokenType) { } /** * 自动检测附件pipeline,如果不存在则创建,一般名字定义为:attachment * * @param pipeline * @return * @throws Exception * @author 时克英 * @date 2020-08-25 */ @Override public boolean autoCreatePipelineAttachment(String pipeline) throws Exception { return false; } }