你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
napoay
赞同来自: laoyang360
PUT testscore { "mappings": { "test":{ "properties": { "title":{ "type": "text", "similarity": "classic" } } } } } PUT testscore/test/1 { "title":"你好中国你好" } PUT testscore/test/2 { "title":"你好" } GET testscore/_search { "query": { "match": { "title": "你好" } } }
{ "took": 20, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hits": { "total": 2, "max_score": 1.25, "hits": [ { "_index": "testscore", "_type": "test", "_id": "2", "_score": 1.25, "_source": { "title": "你好" } }, { "_index": "testscore", "_type": "test", "_id": "1", "_score": 1.0606601, "_source": { "title": "你好中国你好" } } ] } }
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
要回复问题请先登录或注册
80后IT女
2 个回复
napoay
赞同来自: laoyang360
结果:
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自: