package org.stm.essearch.stlib.constant;

public class StLibbIndexs {
    public static final String mapping_common =
            "{\"mappings\":{\"properties\":{\"id\":{\"type\":\"keyword\",\"index\":\"false\"}," +
                    "\"bizNo\":{\"type\":\"keyword\",\"index\":\"false\"}," +
                    "\"fileId\":{\"type\":\"keyword\",\"index\":\"false\"}," +
                    "\"filePath\":{\"type\":\"keyword\",\"index\":\"false\"}," +
                    "\"name\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"}," +
                    "\"fileName\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"}," +
                    "\"sctype\":{\"type\":\"keyword\"},\"scdesc\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"},\"tag\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"},\"lableNames\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"},\"all\":{\"type\":\"text\",\"analyzer\":\"ik_smart\"}}}}";

    public static final String mapping_common_highlight = "{" +
            " \"pre_tags\": [\"<em style='color:red'>\"]," +
            " \"post_tags\": [\"</em>\"]," +
            " \"require_field_match\": \"true\"," +
            " \"fragment_size\":\"2000\"," +
            " \"fields\": {" +
            " \"name\": {\"type\":\"plain\"}," +
            " \"scdesc\": {\"type\":\"plain\"}," +
            " \"tag\": {\"type\":\"plain\"}," +
            " \"lableNames\": {\"type\":\"plain\"}" +
            "}}";
    public static final String mapping_file_highlight = "{" +
            " \"pre_tags\": [\"<em style='color:red'>\"]," +
            " \"post_tags\": [\"</em>\"]," +
            " \"require_field_match\": \"false\"," +
            " \"fragment_size\":\"3000\"," +
            " \"fields\": {" +
                " \"name\": {\"type\":\"plain\"}," +
                " \"contents.content\": {\"type\":\"plain\"}," +
                " \"fpath\": {\"type\":\"plain\"}" +
            "}}";


    public static final String zrch_risk_filedoc = "{\"mappings\":{\"properties\":{\"id\":{\"type\":\"keyword\",\"index\":\"false\"},\"bizNo\":{\"type\":\"keyword\",\"index\":\"false\"},\"docNo\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"},\"name\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"},\"fpath\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"},\"sctype\":{\"type\":\"keyword\"},\"contents\":{\"type\":\"nested\",\"properties\":{\"content\":{\"type\":\"text\",\"analyzer\":\"ik_smart\",\"copy_to\":\"all\"}}},\"all\":{\"type\":\"text\",\"analyzer\":\"ik_smart\"}}}}";
    public static final String mapping_common_query_sort = "[{\"name\":{\"order\":\"desc\"}}]";
    public static final String index_name="mapping_common";
    public static final String index_file_name="zrch_risk_filedoc";
}



