You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR [Catch] Cast to ObjectId failed for value "xxxxxxxxx-1" (type string) at path "_id" for model "posts"
at SchemaObjectId.cast (/app/entrypoints.js:1073:883)
at SchemaType.applySetters (/app/entrypoints.js:1187:226)
at SchemaType.castForQuery (/app/entrypoints.js:1199:338)
at cast (/app/entrypoints.js:159:5360)
at Query.cast (/app/entrypoints.js:799:583)
at Query._castConditions (/app/entrypoints.js:765:9879)
at pn.Query._findOne (/app/entrypoints.js:768:4304)
at pn.Query.exec (/app/entrypoints.js:784:5145)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
Clear and concise description of the problem
免费的Algolia有10KB大小的限制,然而文章长度会偶尔超出。
Suggested solution
一个可行的解决方案是将文章分片上传。Algolia索引是根据
objectID
,因此我将这个改了,并进行分片Python分片示例:
如果我改了
objectID
上传会导致mx-space出错:因此可能需要这边相关代码支持此功能。
Alternative
使用其他键,比如'id'作为结果。
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: