gpt4 book ai didi

elasticsearch - elasticsearch中关键字类型的最大长度是多少?

转载 作者:行者123 更新时间:2023-12-02 22:11:57 24 4
gpt4 key购买 nike

Here是关于关键字的文档,但它们没有说明任何限制。我发现的错误长度是 256 个字符,但如何获得关键字数据类型的最大长度?

最佳答案

最大字节数最多为 32766。当字节数超过 32766 时,您将得到以下错误原因。

"reason": "Document contains at least one immense term in field=\"tags\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.  Please correct the analyzer to not produce such terms.  The prefix of the first immense term is: '[82, 83, 75, 66, 99, 81, 87, 70, 69, 72, 49, 65, 70, 71, 48, 48, 53, 101, 86, 54, 112, 67, 53, 54, 80, 112, 56, 54, 70, 72]...', original message: bytes can be at most 32766 in length; got 32770",
"caused_by": {
"type": "max_bytes_length_exceeded_exception",
"reason": "bytes can be at most 32766 in length; got 32770"
}

关于elasticsearch - elasticsearch中关键字类型的最大长度是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47177163/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com