We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3860e92 commit 526d75eCopy full SHA for 526d75e
index-posts.js
@@ -24,10 +24,10 @@ async function main() {
24
var splitString = cleanContent.split(" ");
25
let numberOfChunks = 1;
26
while (splitString.length) {
27
- const chunkedContent = splitString.splice(0, 1000).join(" ");
+ const chunkedContent = splitString.splice(0, 500).join(" ");
28
29
objects.push({
30
- objectID: `/${uri}/:${numberOfChunks * 1000 - 1000}:${numberOfChunks * 1000}`,
+ objectID: `/${uri}/:${numberOfChunks * 500 - 500}:${numberOfChunks * 500}`,
31
title: data.title,
32
author: data.author,
33
tags: data.tags,
0 commit comments