你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
caizhongao
赞同来自:
caster_QL
yeziblo
guoyanbiao520
liujiacheng
zmc - ES PAAS、JuiceFS
要回复问题请先登录或注册
6 个回复
caizhongao
赞同来自:
caster_QL
赞同来自:
POST test/_search
{
"query": {
"match_phrase": {
"text": {
"query": "门萨"
}
}
}
}
yeziblo
赞同来自:
guoyanbiao520
赞同来自:
liujiacheng
赞同来自:
POST _analyze
{
"analyzer": "ik_smart",
"text": "不知道门萨是不是个好地方"
}
PUT test_ik
POST test_ik/_mapping
{
"properties":{
"content":{
"type": "text",
"analyzer": "ik_smart"
}
}
}
POST test_ik/_doc/1
{
"content":"不知道门萨是不是个好地方"
}
GET test_ik/_search
{
"query": {
"match": {
"content": "门萨"
}
}
}
响应:
{
"took" : 1049,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 0.2876821,
"hits" : [
{
"_index" : "test_ik",
"_type" : "_doc",
"_id" : "1",
"_score" : 0.2876821,
"_source" : {
"content" : "不知道门萨是不是个好地方"
}
}
]
}
}
zmc - ES PAAS、JuiceFS
赞同来自: