Xojo Docs Search - Local TypeSense Workaround

If you want to search the local Xojo docs without the typesense stuff, here’s a trivial workaround. I’m not saying it’s better or worse, but it lets the local docs be searched via http get with a single parameter representing the search term, making it scriptable. It also returns a traditional list of results so you don’t have to keep typing the same thing over again if you select the wrong item the first time… just hit the back button in the browser and you’re back to the same search results.

Anyway, have Xojo download / install the local documentation, then find and edit searchtools.js
( ~/Library/Application Support/Xojo/Xojo/Xojo 2022r2/Documentation/_static/searchtools.js on my system.)

Simply comment out line number 78 (at the time of this writing, anyway) It reads: $('input[name="q"]')[0].value = query;

Comment it out, like so:
//$('input[name="q"]')[0].value = query;

That’s it. Save it and now you can search via URL like:

1 Like