mkiser / WTFJHT

Logging the daily shock and awe in national politics. Read in moderation.
https://whatthefuckjusthappenedtoday.com/
GNU General Public License v3.0
549 stars 196 forks source link

Instant Search Improvements #606

Open theoryshaw opened 6 years ago

theoryshaw commented 6 years ago

Love the search function, but would be awesome if you could sort by date too.

mkiser commented 6 years ago

I would like this too (as well as being about to take advantage of Algolia's faceted searches) and text, date, title, and h1/title tags are currently indexed.

The current implementation is super basic. But I need to bump up to the latest version of Instant Search for general performance improvements.

I would love help on this because I don't know when I'll ever get around to it.

mkiser commented 6 years ago

Main bits of the Algolia implementation are in the default template: https://github.com/mkiser/WTFJHT/blob/aa9bf78471af1cdf4789a02bb74de2b484be394b/_layouts/default.html#L30

And in the Algolia js in the footer: https://github.com/mkiser/WTFJHT/blob/master/_includes/algolia.html

Read-only API key is available in the config.yml file, so anybody that wants to try this out has everything they need

theoryshaw commented 6 years ago

Ever use https://www.bountysource.com/?

Might be a good way to run a mini funding campaign to fund the development of this functionality.

I've used it before, it's a pretty neat approach.

mkiser commented 6 years ago

INSTANT SEARCH REQUIREMENTS

WTF is a blog built on Jekyll using Algolia for its search engine. We need to migrate to Algolia's Instant Search toolkit: https://community.algolia.com/jekyll-algolia/blog.html

User Stories

WTF Reqs