gpt4 book ai didi

algolia - 当我将其推送到 algolia 时,本地数据库整数数据获取字符串

转载 作者:行者123 更新时间:2023-12-02 03:18:27 28 4
gpt4 key购买 nike

我推送到 algolia 的记录显示为字符串,但它在我的本地数据库中是一个整数。

最佳答案

好吧,您没有输入任何代码,所以我认为您的错误在这里:Algolia 是无模式的。你必须像 in this page : 说的那样做

{
"objectID": 42, // record identifier
"title": "Breaking Bad", // string attribute
"episodes": [ // array of strings attribute
"Crazy Handful of Nothin'",
"Gray Matter"
],
"like_count": 978, // integer attribute
"avg_rating": 1.23456, // float attribute
"featured": true, // boolean attribute
"actors": [ // nested objects attribute
{
"name": "Walter White",
"portrayed_by": "Bryan Cranston"
},
{
"name": "Skyler White",
"portrayed_by": "Anna Gunn"
}
]
}

关于algolia - 当我将其推送到 algolia 时,本地数据库整数数据获取字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35130949/

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