Open WinnerWind opened 2 weeks ago
Thanks, I believe the search should be working in the beta and I am not able to reproduce. Can you check if there is console output on the website itself (in the browser) when you try to use the search?
There seems to be no relevant log output. I pressed enter even after entering the search and no errors were seen. I scrolled to the bottom just to be safe.
Huh, very strange. I am not able to reproduce this at all (I even used python to host a local server like you did). Are you able to reproduce this with a basic sandbox vault?
Would it be possible for you to share a zip of your exported vault (the exported site not the vault itself) with me so I can try and figure out what is wrong?
Thanks!
Hi there! I'm not at home right now, but I'll do so when I'm back. I'll try reproducing with a sandbox vault, and sending the exported files.
Hi there! I used BRAT and installed Obsidian Webpage Export via that in a sandbox vault. The search function seems to work there. This is clearly a fault with my vault configuration.
I've already ruled out a few things.
All in all, I am confused. I am still trying to look for a solution. If you wish to poke around the vault and the files, I have uploaded them here. (My Site.zip is the vault, test.zip is the exported website.) My Site.zip test.zip
Closing this issue. Managed to find the cause, but it's a rather counter intuitive one.
I use Linux, and there was a recent update to the kernel. This broke a lot of my sensitive programs, including the program I used to clean up files. I noticed that that program kept trying to clean up the search index for the website. Well, it works now, sorry for taking up your time!
No worries! I'm glad you found the cause and it's working now! :)
Well, search just broke again, and no its not the script I mentioned. I guess I'll leave it be, since this IS a beta version. Eventually it might just fix itself.
So I was able to test this with a site I found which had this error even though I can't reproduce. I believe it is a problem with having an outdated version of mini search (at least in this case). You could try finding the latest minified mini search version and copy paste it into the mini search js script in the site lib folder.
Does it only change after re-exporting?
Hi there! Sorry for the late reply. I'll find the Minisearch you are talking about. You mean this one right?
Does it change after re-exporting? No. The behaviour seems to be inconsistent. Sometimes search works after a full purge then re-export, sometimes it doesn't. I am not sure what is going on.
Edit: Whenever exporting, the plugin always warns me that there is no search index and it will make a new one. Not sure if that's a behaviour of "Clear Cache" which I always do to rexport the entire vault.
Hi there! Sorry for the late reply. I'll find the Minisearch you are talking about. You mean this one right?
Does it change after re-exporting? No. The behaviour seems to be inconsistent. Sometimes search works after a full purge then re-export, sometimes it doesn't. I am not sure what is going on.
Edit: Whenever exporting, the plugin always warns me that there is no search index and it will make a new one. Not sure if that's a behaviour of "Clear Cache" which I always do to rexport the entire vault.
Yes the missing search index shows up because of the full purge.
https://cdn.jsdelivr.net/npm/minisearch@7.1.0/dist/umd/index.min.js
This is the minisearch cdn. Try pasting it's content into the minisearch.js file in the site-lib/scripts/minisearch.js
file in your export and then reloading your site (making sure to clear the cache)
Hi there! The fixed Minisearch does work. I did not need to reload the cache. I jus tpasted the file, refreshed the site, and for good measure, started the python hosting script again, and it works.
Yay! Great! I have updated the minisearch version which will be out in the next release
Looking forward to the next release! Thanks for your dedication.
What happened?
When exporting the website and hosting it on local host using
python3 -m http.server
(Runs the current directory as an Apache server), I expect the search function to work, or show a window, or give some response. No response is seen, and the search bar just works as a default textbarReproduction
Last Working Version
Unsure
Version
1.9.0-2b
Operating System
Arch Linux x86_64 using X11
Obsidian Version
current v1.6.7 installer v1.6.7
Which browsers can you reproduce this in?
Firefox
Relevant log output
Additional Info
No response