반응형
Recent Posts
Recent Comments
관리 메뉴

개발잡부

[es] _update_by_query 본문

ElasticStack/Elasticsearch

[es] _update_by_query

닉의네임 2022. 7. 20. 09:09
반응형
POST hyper-item-aggs-nested/_update_by_query?wait_for_completion=false
{
  "script": {
    "source": "ctx._source.filterInfo.benefit = ['BASIC','FREE']"
  },
  "query": {
    "term": {
      "itemStoreInfo.dcType": {
        "value": "DEFAULT_PRICE"
      }
    }
  }
}



POST hyper-item-aggs-array/_update_by_query?wait_for_completion=false
{
  "script": {
    "source": "ctx._source.filterInfo.benefit = ['BASIC','FREE']"
  },
  "query": {
    "term": {
      "itemStoreInfo.dcType": {
        "value": "DEFAULT_PRICE"
      }
    }
  }
}
반응형

'ElasticStack > Elasticsearch' 카테고리의 다른 글

[es] sort - payload sort 3  (0) 2022.08.11
[es] aggregation test 4  (0) 2022.07.20
[es] aggregation test 3  (0) 2022.07.19
[es] aggregation test 2  (0) 2022.07.17
[es] nested aggregation  (0) 2022.07.16
Comments