نکات کاربردی

طبقه بندی موضوعی

آخرین مطالب

۱ مطلب با کلمه‌ی کلیدی «update_by_query» ثبت شده است

میخواهیم نوع ستون second را از string به float برای تمام داکیومنت ها (رکوردها) تغییر دهیم مراحل زیر را طی میکنیم:

1-

PUT  _ingest/pipeline/convert-call-seconds-to-float
{
  "description": "converts the content of the second field to an float",
  "processors" : [
    {
      "convert" : {
        "field" : "second",
        "type": "float",
        "ignore_missing": true
      }
    }
  ]
}

2-

POST /db_name/_update_by_query?pipeline=convert-call-seconds-to-float

مرجع:

Update By Query API

behrad nasehi
۰۲ تیر ۹۸ ، ۱۱:۰۴ موافقین ۰ مخالفین ۰ ۰ نظر