Replies: 4 comments 4 replies
-
Thanks for asking. I think you'll be running into other problems trying to build 100.000 pages with MkDocs right now – MkDocs is not built for that. However, we're working on the foundation of Material for MkDocs right now, and search is one of the central topics. This will also include searching corpora with 100.000 pages or more, which will not be possible in the browser anymore given the amount of data that would need to be transmitted. A solution will likely include deploying an index to an edge function or server. You can watch this issue for updates: #6307 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the note. We are using it to host a directory of people.
Actually, everything works great so far except for search. It would be
amazing to offload some processes if you end up building such a platform.
For the time being, what do you recommend we do? We can offload the search
functionality to our own API or Agoda. Or, it would be ideal if we could
replace it with local search but only on the headers of pages (basic string
search is fine).
Also, right now, ripping out search and replacing it with our own
functionality (I tried doing this yesterday) is super hard - and I was
ultimately unsuccessful.
…On Wed, Apr 30, 2025 at 5:04 AM Martin Donath ***@***.***> wrote:
Also could you maybe share what you're trying to build? 100.000 pages is
quite a lot, so we'd be interested in learning more about your use case, as
there's only a very small set of static site generators being able to
handle that many pages.
—
Reply to this email directly, view it on GitHub
<#8181 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJWHFL4SQLFRLHLXBMDGRL24CGZZAVCNFSM6AAAAAB4EMYP2KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOJZGA2TINQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Another thought - if I intelligently exclude certain pages using https://squidfunk.github.io/mkdocs-material/blog/2021/09/26/excluding-content-from-search/#excluding-sections-search_indexjson, will that avoid the failure-point? |
Beta Was this translation helpful? Give feedback.
-
What is the size in MB of the search_json file? Have you tried to post-process and trim the final result of any HTML tags to make an ultra minimized version? Except of forking and modifying the underlying TypeScript of the search I also see an option to simply remove the search modal altogether in the As for what backend would be the fastest idk, maybe FastAPI with SQLite given the amount of records. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, when I enable search on mkdocs, it tries to initialize the search live on the website and ends up crashing the page. I'd like to have the bare minimum - ideally something as simple as string search. Is there a better way to configure the search functionality?
When running, the memory object that continuously increases in size until things crash is:
search.f8cc74c7.min.js
Beta Was this translation helpful? Give feedback.
All reactions