官方权威文档:
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
网友评论