User Tools

Site Tools


elasticsearch

This is an old revision of the document!


Elasticsearch Cheat Sheet

update_by_query

POST /index/_update_by_query
{
  "script": "ctx._source.field = 'correct value'",
  "query": {
    "term": {
      "field": "wrong value"
    }
  }
}
elasticsearch.1545839829.txt.gz · Last modified: 2018/12/26 16:57 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki