ES基础(三十三)剖析分布式查询及相关性评分

ES基础(三十三)剖析分布式查询及相关性评分

 

 ES基础(三十三)剖析分布式查询及相关性评分

 

 ES基础(三十三)剖析分布式查询及相关性评分

 

 ES基础(三十三)剖析分布式查询及相关性评分

 

 ES基础(三十三)剖析分布式查询及相关性评分

 

 ES基础(三十三)剖析分布式查询及相关性评分

 

 ES基础(三十三)剖析分布式查询及相关性评分

 

课程demo

DELETE message
PUT message
{
  "settings": {
    "number_of_shards": 20
  }
}

GET message

POST message/_doc?routing=1
{
  "content":"good"
}

POST message/_doc?routing=2
{
  "content":"good morning"
}

POST message/_doc?routing=3
{
  "content":"good morning everyone"
}

POST message/_search
{
  "explain": true,
  "query": {
    "match_all": {}
  }
}


POST message/_search
{
  "explain": true,
  "query": {
    "term": {
      "content": {
        "value": "good"
      }
    }
  }
}


POST message/_search?search_type=dfs_query_then_fetch
{

  "query": {
    "term": {
      "content": {
        "value": "good"
      }
    }
  }
}

 

上一篇:codeforces-Good Bye 2020 E.Apollo versus Pan补题


下一篇:组件封装