August 2019
Intermediate to advanced
560 pages
13h 41m
English
Compute the moving average by using the Holt-Winters method from the subset of data in each window. The rest of the aggregation for the Holt-Winters function with the alpha (0.8), beta (0.3), gamma (0.1), and period (1) parameter values is as follows:
"weekly_change_holtWinters": {"moving_fn":{"buckets_path":"weekly_change","script":" MovingFunctions.holtWinters(values, 0.8, 0.3, 0.1, 1, false)","window":4}}
Recall in Chapter 6, Search APIs, how we said that this chapter would discuss the post_filter request body search parameter. We will discuss it in the next section.
Read now
Unlock full access