美文网首页
elasticsearch查询条件

elasticsearch查询条件

作者: 催化剂 | 来源:发表于2019-06-04 12:58 被阅读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

    相关文章

      网友评论

          本文标题:elasticsearch查询条件

          本文链接:https://www.haomeiwen.com/subject/nsulxctx.html