Search input and pagination #238
-
Hi, I've implemented pagination and search functionality for posts by tags and inputted phrases. As usual, it works on localhost, but after deploying to Vercel, it doesn't work.
Expected behavior is shown in the video below. Nagrywanie.2024-07-11.192726.mp4Is there anyone who can help me bring this to a fully functional, working version? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @PiotrSierant, I'm sorry to hear you're having trouble with this. Your message prompted me to try to get a search function working on my website. I'll update the advanced blog example when I have some time. The solution involves importing the metadata.json file directly into your search component. Which might get too large if you have tons of posts. But I think it should be ok for most cases. If you are going to have thousands of posts, maybe Algolia or another search service might be a better option. |
Beta Was this translation helpful? Give feedback.
Hey @PiotrSierant, I'm sorry to hear you're having trouble with this.
Your message prompted me to try to get a search function working on my website.
And it does: https://www.andrevitorio.com/posts
I'll update the advanced blog example when I have some time. The solution involves importing the metadata.json file directly into your search component. Which might get too large if you have tons of posts. But I think it should be ok for most cases.
If you are going to have thousands of posts, maybe Algolia or another search service might be a better option.