I have a large documentation set (68 files) for my development paclet/package in Mathematica 13.2 on Windows.
Each page in the documentation set has a set of Keywords listed in the v13.2 templates
PacletInfo file uses the standard “Documentation” extension
Using PacletDocumentationBuild and PacletBuild to generate the paclet
Installing the Paclet using PacletInstall
Paclet shows up in the Paclets\Repository in my profile as installed and works perfectly
Documentation pages, however, are not searchable. A search for my paclet name, or anything like it, generates the first (alphabetical) Tech Note (Tutorial) in my document set and nothing else. F1 does not work on function names in my notebooks and the info button does not bring up the reference page, but does the search on the function name, whcih does not yield any meaningful results.
First time search in the Documentation Center does not yield a re-indexing pop-up like it used to. If I check $UserBaseDirectory<>"/Logs/DocumentationSearch/MissingIndexCreation.m"
There are no entries when the v13.2 paclet is loaded.
I’ve tried shutting Mathematica completely down and re-launching to no avail.
The search indices are being created in the build/documentation directory, but it looks like the search index files are going unnoticed by the Documentation Center.
What am I missing? Is there a way to force the Documentation Center to see these local index files?
This sounds like a known bug in the PacletDocumentationBuild incremental re-build logic; a fix is in the works, but for now a workaround is possible.
The issue is that when an incremental documentation build is done, search index data is only created for files that have changed since the last build. If no files have changed, then the search index will be empty. (You observed that the search index files exist, but it’s likely that they’re empty.) If you delete your build output directory, then call PacletBuild exactly once, a full rebuild will be done, and consequently the built paclet will have documentation search index data for all doc files. If you install that built .paclet file, documentation search and symbol lookup should work as expected.
I’ll update this thread again once a fix has been released.
That did it. I also had a minor error in my Overview page that I was ignoring as inconsequential. That may have been derailing the indexing. I removed the Overview page and it’s all indexing properly. Now to fix that issue.