Elasticsearch学习(一)

 

 

 

内置分析器:

 Request Body深入搜索:

 

 

GET movies/_search
{
  "query": {
    "terms": {
      "column2": [
        "beautiful",
        "mind"
      ]
    }
  }
}

  

GET movies/_search
{
  "query": {
    "terms": {
      "column2": [
        "beautiful",
        "mind"
      ]
    }
  },
  "sort":[
    {
     "column1": {
      "order":"desc"
      }  
    }
  ]
}

  

GET movies/_search
{
  "query":{
    "constant_score": {
      "filter": {
        "term": {
          "column2": "beautiful"
        }
      }
    }
  }
}

  

posted @ 2020-12-05 13:38  石shi  阅读(139)  评论(0编辑  收藏  举报