Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the multiple search methods of ealsticsearch?

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article analyzes "what are the multiple search methods of ealsticsearch?" The content is detailed and easy to understand. Friends who are interested in "what are the various search methods of ealsticsearch" can follow the editor's train of thought to read it slowly and deeply. I hope it will be helpful to everyone after reading. Let's follow the editor to learn more about "what are the various search methods of ealsticsearch".

Add 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"]} query GET / ecommerce/product/1 modify PUT / ecommerce/product/1 {"name": "jiaqianban gaolujie yagao", "desc": "gaoxiao meibai", "price": 30, "producer": "gaolujie producer" "tags": ["meibai" "fangzhu"]} this is not modifying PUT / ecommerce/product/1 {"name": "jiaqianban gaolujie yagao"} modifying POST / ecommerce/product/1/_update {"doc": {"name": "gaolujie yagao"}} deleting DELETE / ecommerce/product/1query string searchGET / ecommerce/product/_searchGET / ecommerce/product/_search?q=name:yagao&sort=price:descDSL query all data GET / ecommerce/product/_search {"query": { "match_all": {}} sort GET / ecommerce/product/_search {"query": {"match": {"name": "yagao"}} "sort": [{"price": {"order": "desc"}]} paging GET / ecommerce/product/_search {"query": {"match_all": {}, "from": 0, "size": 1} query the specified column GET / ecommerce/product/_search {"query": {"match_all": {}} "_ source": ["name", "price"]} filter data GET / ecommerce/product/_search {"query": {"bool": {"must": [{"match": {"name": "yagao"}}] "filter": {"range": {"price": {"gt": 25, "lt": 50} full text search Will split the search 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"} phrase search It contains the phrase GET / ecommerce/product/_search {"query": {"match_phrase": {"producer": "yagao producer"}} highlight GET / ecommerce/product/_search {"query": {"match": {"producer": "producer"}} "highlight": {"fields": {"producer": {} about what the various search methods of ealsticsearch are, so much for sharing here. I hope that the above content will enable you to improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report