From f71644c8bce6d9ccde949a09f4296b9515ca61f1 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 15 Apr 2022 15:03:43 +0700 Subject: [PATCH] guarantee stats in mapping for sort --- tubearchivist/home/src/es/index_mapping.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tubearchivist/home/src/es/index_mapping.json b/tubearchivist/home/src/es/index_mapping.json index 3abf2c1..9c33f72 100644 --- a/tubearchivist/home/src/es/index_mapping.json +++ b/tubearchivist/home/src/es/index_mapping.json @@ -193,6 +193,22 @@ } } }, + "stats" : { + "properties" : { + "average_rating" : { + "type" : "float" + }, + "dislike_count" : { + "type" : "long" + }, + "like_count" : { + "type" : "long" + }, + "view_count" : { + "type" : "long" + } + } + }, "subtitles": { "properties": { "ext": {