cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package cn.ksource.core.fulltext;
 
import java.util.LinkedHashMap;
import java.util.Map;
 
import cn.ksource.core.util.ConvertUtil;
import cn.ksource.core.util.PropertyUtil;
import cn.ksource.web.Constants;
 
public class FullTextConstants {
 
    //全文检索更新数据源接口地址
    public static String update_data_source_path = "/fulltext/datasource.html";
    
    public static String server_path;
    
    
    //全文检索查询数据接口地址
    public static String query_data_path = "/fulltext/query.html";
    
    
    static{
        server_path = PropertyUtil.get(Constants.APP_CONF_FILE, "full_text_server");
    }
    
    //全文检索分类常量
    public static int allType = 0;//全部
    
    public static int knowledge = 1; //知识
    
    public static int order = 2;//工单
    
    public static int cmdb = 3;//配置
    
    public static int document = 4;//文档
    
    public final static Map<Integer, String> FULL_TEXT_Map = new LinkedHashMap<Integer, String>();
    
    static {
        FULL_TEXT_Map.put(knowledge, "知识");
    }
 
    public final static String getFULL_TEXT_Label(String i){
        return FULL_TEXT_Map.get(ConvertUtil.obj2Integer(i));
    }
    
    
    
    public final static String getUpdate_data_source_path(){
        return server_path+update_data_source_path;
    }
    
    public final static String getQuery_data_path() {
        return server_path+query_data_path;
    }
    
}