Algolia support
kakawait opened this issue · 9 comments
Invest new feature from Hugo 0.20
http://gohugo.io/extras/output-formats/
We have recently got this working in our fork with a npm script:
and openassistive/OpenATFrontEnd@801776c
and to see it in practice: https://openassistive.org (click on search in nav).
We run it with npm run reindex || true && hugo
to build the site
https://www.algolia.com/pricing is a freemium tiered product. For those looking for search without paying for a product search can be added and scaled for free using open source tools such as Bloodhound by Twitter (or its logical successor) and https://www.lunrjs.com/.
If this were an e-commerce theme (which it's not), I would say the same thing.
https://gist.github.com/sebz/efddfc8fdcb6b480f567
hugo + gruntjs + lunrjs = <3 search
Two problems I see with this:
- The upstream project is using algolia and I know @kakawait wants to stick as closely as possible to that. Using a different JS library changes the project quite a bit
- If you have a lot of data - using Lunr isn't a great idea.
Thanks for the info @willwade. Didn't realize the upstream was using Algolia. That's a shame IMO, as it leads individuals to rely on third parties when OSS can get them there free (one way or another), stymieing innovation as a result.
Regarding your second item, anyone having enough data to require something beyond Lunr probably isn't using this theme.
I agree on that @JHabdas 👍 - they probably aren't.. although we are (it may not be for long to be honest..).
(Thanks for that gist by the way - I do love Lunr. I don't see a major problem by the way supporting it as well as algolia. do a fork ;) )
About upstream project, I'm not open to add more feature on that theme that may not exist on upstream project, but I'm trying to report at least everything feature (that seems relevant) from upstream project. That why Algolia support is tracked.
I'm sure Lunr
I will check it but after Algolia, I can't work on both in same time (not enough time).
@willwade Thank for link I will check that. But as I said there is also new feature from Hugo 0.20 that should help.
But as I said there is also new feature from Hugo 0.20 that should help.
And here it is:
https://gohugo.io/content/types/