elasticsearch查询条件

2019-06-04  本文已影响0人  催化剂

官方权威文档:

https://www.elastic.co/guide/cn/elasticsearch/guide/current/_boosting_query_clauses.html

https://www.elastic.co/guide/cn/elasticsearch/guide/current/_boosting_query_clauses.html

用POSTMAN调试以下代码:

http://es服务器地址:9200/dc/resource/_search

{ "query" : { "bool": { "should": [ {"match": {"summary" : "*测试*"}}, {"match": {"files.attachment.content": "*测试*"}}, {"wildcard": {"name": "*测试*"}}, {"wildcard": {"publisher.userName": "*测试*"}} ] } }, "highlight": { "require_field_match": false, "fields" : { "summary": {}, "name" : {}, "publisher.userName": {}, "files.attachment.content": {} } }}

https://blog.csdn.net/u011428598/article/details/81081732

https://www.elastic.co/guide/en/elasticsearch/reference/6.1/search-request-highlighting.html

上一篇下一篇

猜你喜欢

热点阅读