重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
这篇文章跟大家分析一下“ealsticsearch多种搜索方式分别是什么”。内容详细易懂,对“ealsticsearch多种搜索方式分别是什么”感兴趣的朋友可以跟着小编的思路慢慢深入来阅读一下,希望阅读后能够对大家有所帮助。下面跟着小编一起深入学习“ealsticsearch多种搜索方式分别是什么”的知识吧。
让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:国际域名空间、雅安服务器托管、营销软件、网站建设、蒸湘网站维护、网站推广。PUT /ecommerce/product/1 { "name":"gaolujie yagao", "desc":"gaoxiao meibai", "price":30, "producer":"gaolujie producer", "tags":["meibai","fangzhu"] } PUT /ecommerce/product/2 { "name":"jiajieshi yagao", "desc":"gaoxiao fangzhu", "price":25, "producer":"jiajieshi producer", "tags":["fangzhu"] } PUT /ecommerce/product/3 { "name":"zhonghua yagao", "desc":"caoben zhiwu", "price":40, "producer":"zhonghua producer", "tags":["qingxin"] }
GET /ecommerce/product/1
PUT /ecommerce/product/1 { "name":"jiaqianban gaolujie yagao", "desc":"gaoxiao meibai", "price":30, "producer":"gaolujie producer", "tags":["meibai","fangzhu"] }
PUT /ecommerce/product/1 { "name":"jiaqianban gaolujie yagao" }
POST /ecommerce/product/1/_update { "doc":{ "name":"gaolujie yagao" } }
DELETE /ecommerce/product/1
GET /ecommerce/product/_search GET /ecommerce/product/_search?q=name:yagao&sort=price:desc
GET /ecommerce/product/_search { "query": { "match_all": {} } }
GET /ecommerce/product/_search { "query": { "match": { "name":"yagao" } }, "sort": [ { "price": { "order": "desc" } } ] }
GET /ecommerce/product/_search { "query": { "match_all": {} }, "from": 0, "size":1 }
GET /ecommerce/product/_search { "query": { "match_all": {} } , "_source": ["name","price"] }
GET /ecommerce/product/_search { "query": { "bool": { "must": [ {"match": { "name": "yagao" }}] , "filter": { "range": { "price": { "gt": 25, "lt": 50 } } } } } }
PUT /ecommerce/product/5 { "name":"special yagao", "desc":"special meibai", "price":50, "producer":"special yagao producer", "tags":["meibai"] } GET /ecommerce/product/_search { "query": { "match": { "producer": "yagao producer" } } }
GET /ecommerce/product/_search { "query": { "match_phrase": { "producer": "yagao producer" } } }
GET /ecommerce/product/_search { "query": { "match": { "producer": "producer" } } , "highlight": { "fields": { "producer":{} } } }
关于ealsticsearch多种搜索方式分别是什么就分享到这里啦,希望上述内容能够让大家有所提升。如果想要学习更多知识,请大家多多留意小编的更新。谢谢大家关注一下创新互联网站!
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。