On Fri, Nov 20, 2020 at 03:58:35PM +0800, Luan Shengde wrote:
On Fri, Nov 20, 2020 at 03:47:06PM +0800, Zhang Yuhang wrote:
[why] "index.mapping.total_fields.limit": The maximum number of fields in an index. The default value is 1000.
1000 is small for "jobs" index.
Signed-off-by: Zhang Yuhang zhangyuhang25@huawei.com
sbin/es-jobs-mapping.sh | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/sbin/es-jobs-mapping.sh b/sbin/es-jobs-mapping.sh index 076bdd3..018f57e 100755 --- a/sbin/es-jobs-mapping.sh +++ b/sbin/es-jobs-mapping.sh @@ -149,5 +149,10 @@ else if [ $? -ne 0 ] then echo "create jobs index failed."
else
echo "set index.mapping.total_fields.limit: 10000"
curl -XPUT 127.0.0.1:9200/jobs/_settings -H 'Content-Type: application/json' -d '
{"index.mapping.total_fields.limit": 10000}
'
how about use \ instead? curl -XPUT 127.0.0.1:9200/jobs/_settings -H 'Content-Type: application/json' \ -d '{"index.mapping.total_fields.limit": 10000}'
Thanks, Luan Shengde
good idea.
Thanks, Zhang Yuhang
fi
fi
2.23.0