algolia / jekyll-algolia

Add fast and relevant search to your Jekyll site
https://community.algolia.com/jekyll-algolia/
MIT License
215 stars 35 forks source link

Some search terms not working #135

Open WeeBeasties opened 5 years ago

WeeBeasties commented 5 years ago

I want to report a bug:

What is the current behavior?

I am using jekyll-algolia with my static Jekyll website on a DigitalOcean droplet. Everything works well, but I occasionally find words that are not appearing in my search results (e.g. shiny does not give results despite being found on several pages and as a tag for the site). When I check my index on the Algolia website, shiny is indeed present. I don’t understand why this term fails to show results or how to resolve this. Interestingly, 'shiny se' (the beginning of shiny server) does give results. So the pages are in fact indexed, I just cannot access them with shiny as a search term. Any suggestions would be appreciated.

Git repository to reproduce the issue:

I don't have a GitHub repo for this project, I use my droplet as the remote and build the site there. You can check the behavior for yourself at my website.

Ruby version used:

ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

Jekyll version used:

jekyll 3.8.5

julienbourdeau commented 5 years ago

Hi @WeeBeasties,

I think the best way to debug this is to search with the Dashboard explorer and look at the ranking information (over the 🏆 logo). Search letter per letter and you should be able to see more why "shiny" returns no results.

WeeBeasties commented 5 years ago

That is another weird thing... When I check my index with the Algolia dashboard, everything works just fine. I can enter 's', 'sh', 'shi', etc. and all of the results appear just fine. So my index is being created correctly (and when I add new pages and reindex, they are added appropriately). For some reason, though, the search form on my Jekyll site is not pulling from this index. I am puzzled as to what is going on.