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
I want to report a bug: While indexing my blog, the command repeatedly stops because the file to index is too big, mainly caused by the HTML part of the JSON
What is the current behavior?
When I index my site, I get errors like
The jekyll-algolia plugin detected that one of your records exceeds the 10.00 Kb
record size limit.
title: Bloghelden, 10 jaar webloggen in Nederland
url: /bloghelden/
size: 11.99 Kb
Most probable keys causing the issue:
html (5.76 Kb), content (5.74 Kb), tags (0.05 Kb)
What is your expected behavior?
I would expect my relative small blogposts to be indexed. I see from the logfile the index both includes the HTML and the content part. They are almost the same besides the removal of the p-tag in the content part. See enclosed JSON for details.
The way the plugin works is by splitting each page of your blog into several records. By default, it creates one record per <p> of text in the page. Each of those records must not weight more than 10kb and the plugin tries its best to shrink the content until it fits under the 10kb threshold. Having both the plain text and the HTML version of the paragraph in the record is expected.
What seems to not work as expected on your page is that the whole content of the page is set into the record (all paragraphs). I'll clone your repo and investigate; thanks for the report.
@frankmeeuwsen I don't see the jekyll-algolia plugin in your Gemfile on master? Do you have a branch with you setup where I could reproduce the whole issue you're having?
The strangest thing happened though. When I just checked the branch again and tried to index, all of a sudden it passes through. I will investigate some more what is happening/has happened but this is strange. In a good way 🤣.
I want to report a bug: While indexing my blog, the command repeatedly stops because the file to index is too big, mainly caused by the HTML part of the JSON
What is the current behavior?
When I index my site, I get errors like
The jekyll-algolia plugin detected that one of your records exceeds the 10.00 Kb
record size limit.
What is your expected behavior?
I would expect my relative small blogposts to be indexed. I see from the logfile the index both includes the HTML and the content part. They are almost the same besides the removal of the p-tag in the content part. See enclosed JSON for details.
jekyll-algolia-record-too-big.log
Git repository to reproduce the issue:
https://github.com/frankmeeuwsen/DTD-Blog
Ruby version used:
ruby 2.4.2p198 (2017-09-14 revision 59899)
Jekyll version used:
jekyll 3.7.3
The text was updated successfully, but these errors were encountered: