Documentation Search Not Indexing Code Blocks #1367
Replies: 4 comments 1 reply
-
I agree, I also often have this. What I then fall back to is google search:
|
Beta Was this translation helpful? Give feedback.
-
Definitely agree. Looked into it quickly: https://docsearch.algolia.com/docs/legacy/faq/#can-you-index-code-samples |
Beta Was this translation helpful? Give feedback.
-
Here's Twill's config: https://github.com/algolia/docsearch-configs/blob/master/configs/twill.json |
Beta Was this translation helpful? Give feedback.
-
So they do recommend not doing it. We can give it a try by including the pre tags? Can always revert it later if it indeed add's noise. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I've using Twill for a while now (it's awesome by the way) but am finding it hard to get the information I need. Most of the time the information required is in the documentation but the search fails to find many things I would expect it to and I think this is down to it not indexing code blocks.
For example searches for the following terms don't give the results I'd hope to expect:
indexOptions
orindexColumns
- hoped to find https://twill.io/docs/crud-modules/controllers.html@formField('input')
- hoped to find https://twill.io/docs/form-fields/input.html@formConnectedFields
- hoped to find https://twill.io/docs/form-fields/conditional-fields.htmlblock_preview_render_childs
- hoped to find https://twill.io/docs/block-editor/default-configuration.htmlThis wasn't such a problem when it was a single page because I could use the browsers search. I'm not suggesting we go back to a single page layout because an Algolia powered search should beat a browser search hands down.
Is this something that can be changed?
Beta Was this translation helpful? Give feedback.
All reactions