# imooc-search **Repository Path**: phper95/imooc-search ## Basic Information - **Project Name**: imooc-search - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-12 - **Last Updated**: 2022-02-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ```json PUT course { "settings": { "number_of_shards": 2, "number_of_replicas": 1, "analysis": { "analyzer": { "main_analyzer": { "char_filter": [ "html_strip", "&_to_and" ], "tokenizer": "standard", "stopwords": [ "a", "an", "the", "的", "乃", "呢", "么", "呀", "啊", "嗯", "哦" ], "filter": [ "lowercase" ] }, "pinyin_analyzer": { "tokenizer": "pinyin_tokenizer" } }, "char_filter": { "&_to_and": { "type": "mapping", "mappings": [ "&=> and " ] } }, "tokenizer": { "pinyin_tokenizer": { "type": "pinyin", "keep_separate_first_letter": true, "keep_full_pinyin": true, "keep_original": true, "limit_first_letter_length": 16, "lowercase": true } } } }, "mappings": { "properties": { "id": { "type": "keyword", "doc_values": false }, "course_type": { "type": "keyword", "doc_values": false }, "teacher_id": { "type": "keyword", "doc_values": false }, "title": { "type": "text", "analyzer": "main_analyzer", "search_analyzer": "main_analyzer", "fields": { "pinyin": { "type": "text", "analyzer": "pinyin_analyzer", "search_analyzer": "pinyin_analyzer" } } }, "tag": { "type": "text", "analyzer": "main_analyzer", "search_analyzer": "main_analyzer", "fields": { "keyword": { "type": "keyword", "doc_values": false } } }, "weight": { "type": "short", "doc_values": true }, "desc": { "type": "text", "analyzer": "main_analyzer", "search_analyzer": "main_analyzer" }, "mtime": { "type": "long", "doc_values": true }, "ctime": { "type": "long", "doc_values": false } } } } ```