ElasticSearch前缀匹配查询(英文检索)
生活随笔
收集整理的這篇文章主要介紹了
ElasticSearch前缀匹配查询(英文检索)
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
#前綴匹配查詢?
#前綴匹配查詢 GET /lib3/user/_search {"query": {"match_phrase_prefix": {"name":{"query":"zhao"}}} } {"took" : 59,"timed_out" : false,"_shards" : {"total" : 5,"successful" : 5,"skipped" : 0,"failed" : 0},"hits" : {"total" : 2,"max_score" : 0.6931472,"hits" : [{"_index" : "lib3","_type" : "user","_id" : "2","_score" : 0.6931472,"_source" : {"name" : "zhaoming","address" : "bei jing hai dian qu qing he zhen","age" : 20,"birthday" : "1998-10-12","interests" : "xi huan hejiu, duanlian, changge"}},{"_index" : "lib3","_type" : "user","_id" : "1","_score" : 0.2876821,"_source" : {"name" : "zhaoliu","address" : "hei long jiang sheng tie ling shi","age" : 50,"birthday" : "1970-12-12","interests" : "xi buan hejiu, duanlian, lvyou"}}]} }?
總結(jié)
以上是生活随笔為你收集整理的ElasticSearch前缀匹配查询(英文检索)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Elasticsearch索引的数据存储
- 下一篇: java 抽象类 方法_java 抽象类