From 9866009badd7b6d037bdf3ea0220ee9f55bbed6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E5=8B=87?= Date: Fri, 7 Jul 2023 16:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E7=89=87=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/noear/esearchx/model/EsTerms.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/noear/esearchx/model/EsTerms.java b/src/main/java/org/noear/esearchx/model/EsTerms.java index 1cf1b6e..9c88067 100644 --- a/src/main/java/org/noear/esearchx/model/EsTerms.java +++ b/src/main/java/org/noear/esearchx/model/EsTerms.java @@ -41,6 +41,11 @@ public class EsTerms { return this; } + public EsTerms shardSize(int size) { + oNode.set("shard_size", size); + return this; + } + /** * 聚合模式 */ -- Gitee