Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the multiple search methods of ealsticsearch?

Shulou Source: shulou.com Published: 2022-05-31 13:32:27 10月02日 Update

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!

Tags: Search multiple way query content data knowledge phrase follow learn disassemble this is not full-text search interest ideas easy to understand more friends articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia macOS OPPO Reno MySQL Shulou Technology