Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new collection (project) and having problems with searching #1

Open
espenlg opened this issue Aug 29, 2024 · 2 comments
Open

Comments

@espenlg
Copy link

espenlg commented Aug 29, 2024

When I added a new project called "sjekkpunkt" and edited the search.php file to say docs:sjekkpunkt instead of docs:documentation. When I run php please search:update it says 0 entries even though there are 21 entries. So when trying to search I get an error saying "Empty stack", and this is probably because storage/statamic/search/docs.json is empty.

I tried to follow the documentation on documentation-search from a-z, but I'm at a loss 🤷‍♂️ Is there anything I can provide of information to help me figure this out?

@JohnathonKoster
Copy link
Contributor

Hey there!

Do you have a template within resources/views/documentation-search? The easiest way to use them is to add a _default.antlers.html (or _default.blade.php) template at resources/views/documentation-search/_default.antlers.html.

That is the one way I know to get the behavior described

@espenlg
Copy link
Author

espenlg commented Aug 30, 2024

Yes, that is in place, and I also tried renaming the "documentation"-folder to "sjekkpunkt". I have a feeling the indexing is the problem as the docs.json file is empty 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants