I had some issues to get the search running for a custom doc collection. I figured it out after quite a lot of time, i just want to document what i think would have been helpfull to me, maybe it is to someone else as well (or maybe the docs could be improved)
- I added the collection to
config/statamic/search.php
- I added a search result blueprint default for my new collection (copied from the default tidal docs) `
resources/views/documentation-search$ cp -r documentation my_collection_name
- I refreshed the search index
php please search:update --all
Especialy number 2 could have been a bit easier to find and a bit more clear it is needed. If you forget number 2, the search does work but your own stuff does not show up, only the default doc.
Suggestions for docs improvement: maybe a quick guide how to make your docs searchables with the 3 steps above on this site https://stillat.com/tidal-starter-kit/v1/documentation-search
Edit: or an option in the collection create command to (at least) copy the default
I had some issues to get the search running for a custom doc collection. I figured it out after quite a lot of time, i just want to document what i think would have been helpfull to me, maybe it is to someone else as well (or maybe the docs could be improved)
config/statamic/search.phpEspecialy number 2 could have been a bit easier to find and a bit more clear it is needed. If you forget number 2, the search does work but your own stuff does not show up, only the default doc.
Suggestions for docs improvement: maybe a quick guide how to make your docs searchables with the 3 steps above on this site https://stillat.com/tidal-starter-kit/v1/documentation-search
Edit: or an option in the collection create command to (at least) copy the default