diff --git a/CLAUDE.md b/CLAUDE.md index c5e6f3f..6d30d42 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -342,9 +342,6 @@ query_config: enable_translation: true # DeepL API integration enable_text_embedding: true # BGE-M3 vector search enable_query_rewrite: true # Dictionary-based expansion - embedding_disable_thresholds: - chinese_char_limit: 4 # Short query optimization - english_word_limit: 3 ``` **Ranking Formula**: diff --git a/config/config.yaml b/config/config.yaml index f55a157..a409140 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -77,11 +77,6 @@ query_config: text_embedding_field: "title_embedding" image_embedding_field: null - # Embedding禁用阈值(短查询不使用向量搜索) - embedding_disable_thresholds: - chinese_char_limit: 4 - english_word_limit: 3 - # 翻译API配置(provider/URL 在 services.translation) translation_service: "deepl" translation_api_key: null # 通过环境变量设置 diff --git a/mappings/search_products.json b/mappings/search_products.json index 10f1323..ebd729b 100644 --- a/mappings/search_products.json +++ b/mappings/search_products.json @@ -5,17 +5,17 @@ "refresh_interval": "30s", "analysis": { "analyzer": { - "index_ansj": { + "index_ik": { "type": "custom", - "tokenizer": "standard", + "tokenizer": "ik_max_word", "filter": [ "lowercase", "asciifolding" ] }, - "query_ansj": { + "query_ik": { "type": "custom", - "tokenizer": "standard", + "tokenizer": "ik_smart", "filter": [ "lowercase", "asciifolding" @@ -58,8 +58,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", @@ -184,8 +184,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", @@ -310,8 +310,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", @@ -436,8 +436,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", @@ -562,8 +562,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", @@ -688,8 +688,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", @@ -1032,8 +1032,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", @@ -1158,8 +1158,8 @@ "properties": { "zh": { "type": "text", - "analyzer": "index_ansj", - "search_analyzer": "query_ansj" + "analyzer": "index_ik", + "search_analyzer": "query_ik" }, "en": { "type": "text", -- libgit2 0.21.2