Help search index not found
Mostrar comentarios más antiguos
Being a novice I have been using the help documentation frequently as I learn how to do what I want!
Suddenly, I started getting the error:
Search index not found
when searching the documentation on my laptop installation. I started using my PC installation instead to search the help pages but since today get the same error message! In both cases I can still browse the documentation - I just can't search it anymore.
I have no idea what could have caused this on both systems. Maybe there was a Windows update that causes problems?
I have Matlab R2017b (9.3.0.713579) on both machines running Windows 7 with an academic license.
Does anyone know how to restore the search index?
Thanks
Respuestas (1)
Jan
el 22 de En. de 2018
1 voto
See https://www.mathworks.com/help/matlab/ref/builddocsearchdb.html for re-creating the search database. Maybe this helps you to find the corresponding files in the help folders and restore them from the backup (see "recent versions" or "file history"). But if the data base vanished on both computers, there must be a connection. Maybe one of your functions overwrites them or you have shadowed a built-in function, such that the search fails? Check this by e.g. https://www.mathworks.com/matlabcentral/fileexchange/27861-uniquefuncnames.
4 comentarios
Gareth Jenkins
el 23 de En. de 2018
Jan
el 23 de En. de 2018
You can use the debugger to step through the code of builddocsearchdb (hopefully it is not a P-file). This might reveal, why which file cannot be written. Check the file permissions again for this file and folder. Maybe it helps to start Matlab as an administrator - but it is safer not to do this for productive use.
Gareth Jenkins
el 24 de En. de 2018
Johannes Stoerkle
el 15 de Abr. de 2020
I had the same error with R2020a (but not with the previous versions). My code was:
... publish files in 'C:\PathToDirWithInfoXml\html'
% Renew addpath(<directory path info.xml>)
rmpath('C:\PathToDirWithInfoXml\')
addpath('C:\PathToDirWithInfoXml\')
builddocsearchdb('C:\PathToDirWithInfoXml\html');
It turned out, that since R2020a, the filesep at the end of the string argument for rmpath(...) and addpath(...) leads to problems. Now, this is working:
... publish files in 'C:\PathToDirWithInfoXml\html'
% Renew addpath(<directory path info.xml>)
rmpath('C:\PathToDirWithInfoXml') % pathWithoutFilesep = fileparts(pathWithFilesep)
addpath('C:\PathToDirWithInfoXml')
builddocsearchdb('C:\PathToDirWithInfoXml\html');
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!