content: package cc.langhai.es.config;
  
  /**
   * 浪海博客系统索引库创建DSL语句
   *
   * @author langhai
   * @date 2023-01-08 16:01
   */
  public class ESConstants {
  
      public static final String MAPPING_TEMPLATE = "{\n" +
              "  \"settings\": {\n" +
              "    \"analysis\": {\n" +
              "      \"analyzer\": {\n" +
              "        \"text_anlyzer\": {\n" +
              "          \"tokenizer\": \"ik_max_word\",\n" +
              "          \"filter\": \"py\"\n" +
              "        }\n" +
              "      },\n" +
              "      \"filter\": {\n" +
              "        \"py\": {\n" +
              "          \"type\": \"pinyin\",\n" +
              "          \"keep_full_pinyin\": true,\n" +
              "          \"keep_joined_full_pinyin\": true,\n" +
              "          \"keep_original\": true,\n" +
              "          \"limit_first_letter_length\": 16,\n" +
              "          \"remove_duplicated_term\": true,\n" +
              "          \"none_chinese_pinyin_tokenize\": false\n" +
              "        }\n" +
              "      }\n" +
              "    }\n" +
              "  },\n" +
              "  \"mappings\": {\n" +
              "    \"properties\": {\n" +
              "      \"id\":{\n" +
              "        \"type\": \"keyword\"\n" +
              "      },\n" +
              "      \"title\":{\n" +
              "        \"type\": \"text\",\n" +
              "        \"analyzer\": \"text_anlyzer\",\n" +
              "        \"search_analyzer\": \"ik_smart\"\n" +
              "      },\n" +
              "      \"userId\":{\n" +
              "        \"type\": \"long\",\n" +
              "        \"index\": false\n" +
              "      },\n" +
              "      \"labelId\":{\n" +
              "        \"type\": \"long\",\n" +
              "        \"index\": false\n" +
              "      },\n" +
              "      \"html\":{\n" +
              "        \"type\": \"keyword\",\n" +
              "        \"index\": false\n" +
              "      },\n" +
              "      \"publicShow\":{\n" +
              "        \"type\": \"integer\"\n" +
              "      },\n" +
              "      \"addTimeShow\":{\n" +
              "        \"type\": \"keyword\",\n" +
              "        \"index\": false\n" +
              "      },\n" +
              "      \"author\":{\n" +
              "        \"type\": \"text\",\n" +
              "        \"analyzer\": \"text_anlyzer\",\n" +
              "        \"search_analyzer\": \"ik_smart\"\n" +
              "      },\n" +
              "      \"labelContent\":{\n" +
              "        \"type\": \"text\",\n" +
              "        \"analyzer\": \"text_anlyzer\",\n" +
              "        \"search_analyzer\": \"ik_smart\"\n" +
              "      },\n" +
              "      \"abstractText\":{\n" +
              "        \"type\": \"text\",\n" +
              "        \"analyzer\": \"text_anlyzer\",\n" +
              "        \"search_analyzer\": \"ik_smart\"\n" +
              "      }\n" +
              "    }\n" +
              "  }\n" +
              "}";
  }
  