Hello,World

我用i热更新 IK 分词以后关键词搜索就报这个错误,没有采用热更新之前还是好好的,这个该怎么办呀?哪位大神帮帮忙

Elasticsearch | 作者 dorisnzy | 发布于2018年05月29日 | 阅读数:3071


{
"error": {
"root_cause": [{
"type": "query_shard_exception",
"reason": "failed to create query: {\n \"bool\" : {\n \"must\" : [\n {\n \"range\" : {\n \"publish_time\" : {\n \"from\" : \"1520870400\",\n \"to\" : \"1526313600\",\n \"include_lower\" : true,\n \"include_upper\" : true,\n \"boost\" : 1.0\n }\n }\n },\n {\n \"match\" : {\n \"title\" : {\n \"query\" : \"上东城\",\n \"operator\" : \"OR\",\n \"prefix_length\" : 0,\n \"max_expansions\" : 50,\n \"fuzzy_transpositions\" : true,\n \"lenient\" : false,\n \"zero_terms_query\" : \"NONE\",\n \"auto_generate_synonyms_phrase_query\" : true,\n \"boost\" : 1.0\n }\n }\n },\n {\n \"match\" : {\n \"content\" : {\n \"query\" : \"上东城\",\n \"operator\" : \"OR\",\n \"prefix_length\" : 0,\n \"max_expansions\" : 50,\n \"fuzzy_transpositions\" : true,\n \"lenient\" : false,\n \"zero_terms_query\" : \"NONE\",\n \"auto_generate_synonyms_phrase_query\" : true,\n \"boost\" : 1.0\n }\n }\n }\n ],\n \"adjust_pure_negative\" : true,\n \"boost\" : 1.0\n }\n}",
"index_uuid": "RhG5tKclTDqiJ3TT7EzuUw",
"index": "doc"
}],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [{
"shard": 0,
"index": "doc",
"node": "NwaqI-H2SQmykhzbqnyNww",
"reason": {
"type": "query_shard_exception",
"reason": "failed to create query: {\n \"bool\" : {\n \"must\" : [\n {\n \"range\" : {\n \"publish_time\" : {\n \"from\" : \"1520870400\",\n \"to\" : \"1526313600\",\n \"include_lower\" : true,\n \"include_upper\" : true,\n \"boost\" : 1.0\n }\n }\n },\n {\n \"match\" : {\n \"title\" : {\n \"query\" : \"上东城\",\n \"operator\" : \"OR\",\n \"prefix_length\" : 0,\n \"max_expansions\" : 50,\n \"fuzzy_transpositions\" : true,\n \"lenient\" : false,\n \"zero_terms_query\" : \"NONE\",\n \"auto_generate_synonyms_phrase_query\" : true,\n \"boost\" : 1.0\n }\n }\n },\n {\n \"match\" : {\n \"content\" : {\n \"query\" : \"上东城\",\n \"operator\" : \"OR\",\n \"prefix_length\" : 0,\n \"max_expansions\" : 50,\n \"fuzzy_transpositions\" : true,\n \"lenient\" : false,\n \"zero_terms_query\" : \"NONE\",\n \"auto_generate_synonyms_phrase_query\" : true,\n \"boost\" : 1.0\n }\n }\n }\n ],\n \"adjust_pure_negative\" : true,\n \"boost\" : 1.0\n }\n}",
"index_uuid": "RhG5tKclTDqiJ3TT7EzuUw",
"index": "doc",
"caused_by": {
"type": "null_pointer_exception",
"reason": null
}
}
}]
},
"status": 400
}
已邀请:

dorisnzy

赞同来自:

我开启IK热更新以后查看启动日志有一个这样的错误:The length of text to be analyzed for highlighting [12043] exceeded the allowed maximum of [10000] set for the next major Elastic version. For large texts, indexing with offsets or term vectors is recommended!

zz_hello

赞同来自:

你是用数据库方式热更新词库的吗?我现在基于数据库热更新词库有问题,想请教你是怎么做的

要回复问题请先登录注册