>To be sure to not have something else interfering I now created a new >machine with Ubuntu 18.04, Apache2, Php7.2, Doxygen 1.8.13 and >all needed dependencies. The internal search didn't work, same as >before. After searching no results are displayed and the layout is >messed up. > >Then I tried the external search with the doxyindexer/doxysearch.cgi. >I created the database and setup the search as described here: >https://www.stack.nl/~dimitri/doxygen/manual/extsearch.html > >Testing worked with "Test failed: cannot find search index doxysearch.db" >and also "Test successful". However the searching for a real string >didn't work either. The layout is conserved but still no results are >returned. > >The direct search call does return a result like > >http://127.0.0.1/bin/doxysearch.cgi?q=clj > >({ > "hits":1, > "first":0, > "count":1, > "page":0, > "pages":1, > "query": "clj", > "items":[ > {"type": "page", > "name": "index::mcrobot", > "tag": "", > "url": "mcrobot.html", > "fragments":[ > ] > } > ] >}) > >But searching from the search box is just empty > >http://127.0.0.1/search.html?query=clj
I debugged it down to search.js: function searchFor(query,page,count) { $.getJSON(serverUrl+"?cb=?", { n:count, p:page, q:query }, function(data) { It seems like the getJSON call is never successful and the success function is never called, even tough the same call directly executed does return a result. I finally got the external search to work. The problem was the search URL. Initially I had only the server string without protocol. Seems like the getJSON function doesn't like this. It only worked after I added http:// (or https://) to the search URL. It would be nice if there was some error message stating that the call itself failed and that the search URL is probably wrong. That would have saved me some time as I never knew where the problem was. And I still don't know what the problem with the internal search is. But I'm now going with the external search as this is recommended. Thanks bye Fabi ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users