algolia / jekyll-algolia

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

How to index more content than just the first few paragraphs after each heading #156

Open squallstar opened 4 years ago

squallstar commented 4 years ago

I've been using this plugin for ages now but I always find that the Algolia index only contains search records containing the first paragraphs after each heading.

Is there an option or change I can make to the source library to allow the whole page to be indexed?

Thanks

pixelastic commented 4 years ago

Hello,

It should index all paragraphs of the page, not only the ones after a heading.

What could be confusing though, is that it configures the index to "group" them when doing a search, only returning the most relevant to your search.

A quick way to see if it's a display issue or an indexing issue would be to either: