We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
查看分词结果 GET pinyin_test/_analyze { "field": "name.pinyin", "text": ["刘德华"] }
{ "tokens" : [ { "token" : "liu", "start_offset" : 0, "end_offset" : 0, "type" : "word", "position" : 0 }, { "token" : "ldh", "start_offset" : 0, "end_offset" : 0, "type" : "word", "position" : 0 }, { "token" : "de", "start_offset" : 0, "end_offset" : 0, "type" : "word", "position" : 1 }, { "token" : "hua", "start_offset" : 0, "end_offset" : 0, "type" : "word", "position" : 2 } ] } 含有ldh,但是使用match_parse却搜索不到 GET medcl/_search { "query": { "match_phrase": { "name.pinyin": "ldh" } } }
{ "took" : 0, "timed_out" : false, "_shards" : { "total" : 1, "successful" : 1, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 0, "relation" : "eq" }, "max_score" : null, "hits" : [ ] } }
The text was updated successfully, but these errors were encountered:
用 POST medcl/_search { "query": { "match_phrase": { "name.pinyin": "liudehua" } } } 必须每个 position 都有和 刘德华 分词结果匹配的token
ldh 分词后 相同 position 会有不匹配的token
Sorry, something went wrong.
我也是这个问题,版本是8.12.2。分词结果的star_offset和end_offset全都是0
需要怎么配置才能正确获取到star_offset和end_offset
还是说这个版本有问题?因为readme的示例展示结果是有的。
No branches or pull requests
查看分词结果
GET pinyin_test/_analyze
{
"field": "name.pinyin",
"text": ["刘德华"]
}
{
"tokens" : [
{
"token" : "liu",
"start_offset" : 0,
"end_offset" : 0,
"type" : "word",
"position" : 0
},
{
"token" : "ldh",
"start_offset" : 0,
"end_offset" : 0,
"type" : "word",
"position" : 0
},
{
"token" : "de",
"start_offset" : 0,
"end_offset" : 0,
"type" : "word",
"position" : 1
},
{
"token" : "hua",
"start_offset" : 0,
"end_offset" : 0,
"type" : "word",
"position" : 2
}
]
}
含有ldh,但是使用match_parse却搜索不到
GET medcl/_search
{
"query": {
"match_phrase": {
"name.pinyin": "ldh"
}
}
}
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 0,
"relation" : "eq"
},
"max_score" : null,
"hits" : [ ]
}
}
The text was updated successfully, but these errors were encountered: