Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reindex site in Algolia #574

Closed
kltm opened this issue Jul 24, 2024 · 6 comments
Closed

Reindex site in Algolia #574

kltm opened this issue Jul 24, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@kltm
Copy link
Member

kltm commented Jul 24, 2024

Currently, it seems like the search index is not in sync with the contents in Algolia. Need to reindex.

@kltm kltm added the bug Something isn't working label Jul 24, 2024
@kltm
Copy link
Member Author

kltm commented Jul 24, 2024

Running the instructions now fails with error:

/var/lib/gems/2.7.0/gems/jekyll-algolia-1.4.11/lib/jekyll/algolia/logger.rb:33:in `match': invalid byte sequence in US-ASCII (ArgumentError)

@kltm
Copy link
Member Author

kltm commented Jul 24, 2024

A little homework and we (now?) need to provide language environmental variables.

kltm added a commit that referenced this issue Jul 24, 2024
Update dev docs for algolia stuff #574
@kltm
Copy link
Member Author

kltm commented Jul 24, 2024

Now failing with error:

Rendering to HTML (100%) |=====================================================|
Extracting records (100%) |====================================================|
[✗ Error] Record is too big                                                      
                                                                                 
The jekyll-algolia plugin detected that one of your records exceeds the 10.00 Kb 
record size limit.                                                               
                                                                                 
title:                                                                           
url:      /gorefs.html                                                           
size:     53.80 Kb                                                               
                                                                                 
Most probable keys causing the issue:                                            
   html (29.17 Kb), content (21.33 Kb), custom_ranking (0.03 Kb)                 
                                                                                 

:sigh:

kltm added a commit that referenced this issue Jul 24, 2024
kltm added a commit that referenced this issue Jul 24, 2024
shortcut text for #574
@kltm
Copy link
Member Author

kltm commented Jul 24, 2024

In the end, to get this to update (under the "free" plan), I needed to remove the following files from the index:

  • gorefs.html
  • GO_REF/0000012.html
  • GO_REF/0000024.html

@kltm
Copy link
Member Author

kltm commented Jul 24, 2024

That said, the documentation should be updated, as well as the index. @suzialeksander , if this works for you, you can go ahead and close.

@suzialeksander
Copy link
Collaborator

neat, it picked up some edits i did this afternoon. This should be OK for now, but will need to be re-run as the shuffling hasn't quite finished. Closing as this is good-enough-for-now and sounds like next time might need #575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants