playframework / playframework.com

The Play Framework website
https://playframework.com/
Apache License 2.0
43 stars 65 forks source link

Search does not work #562

Closed mkurz closed 5 months ago

mkurz commented 11 months ago

:cry:

mkurz commented 11 months ago

It's working in

but not the newly added 2.9.x and 3.0.x docs:

Pretty sure the Algolia index needs to be configured to also crawl those two new "subfolders". I am in contact with Lightbend already since they still manage the algolia account. They will take a look. Also asking them to transfer the algolia index to us... We will see.

PromanSEW commented 7 months ago

Any news?

mkurz commented 7 months ago

Yeah sorry for the long delay, I am working on it, just algolia support takes some time (also I was not pushing hard enough...). I wrote them once more, I am also in contact with Lightbend, to finally hand over the Algolia account but things take a bit longer then desired (they couldn't find the credentials...). But we are getting there slowly. I hope to resolve this the next days, really :crossed_fingers:

mkurz commented 5 months ago

Just to let you know I am working on this again, I need to set up a new algolia account because we can not retrieve the old one and support can not help us (or not willing to...)

mkurz commented 5 months ago

So, I finally figured all the things out, spend basically the last two days reading Algolia docs, contacting even more people, trying various things with different docsearch version and crawler versions (because Play currently uses a very old legacy Algolia implementation which actually needed to be upgraded etc)... it was a bit complicated, but I can replicate the search now again locally already. I am an Algolia expert now... I am too tired now, but will post more about that tomorrw (and also will finally make the search work again, future proof)

mkurz commented 5 months ago

Basically crawling and searching is working again (you can try in https://www.playframework.com/documentation/3.0.x/Home already, also old docs work fine still, like https://www.playframework.com/documentation/2.0.1/Home or with the x - https://www.playframework.com/documentation/2.0.x/Home).

Just three issues left which I just found in production now (because I was always testing with 3.0.x locally):

mkurz commented 5 months ago

Done, search is working now again for all versions. Also, no crawl errors occured anymore. Bonus: New releases will be crawled automatically, because https://www.playframework.com/releases is now the entry point for crawling, which has hidden links to all versions. Algolia crawler visits once per week on Tuesday. Crawling and indexing all pages of all versions now takes ~ 2 hours and 20 minutes.

Finally we now have control with our own Algolia account. RIP old Algolia account that no one is able to restore anymore :coffin: (including Algolia staff...)