Under the search logs table there is a search_type parameter depending on from where the search is coming. Example, site, wiki, etc. You can also see this in the control panel under the logged searches.
Where is the documentation to pass this parameter on the search form or tags in a search form template? Either standard or pro? All I see in the docs is parameters for site and channel. What if someone wants a search that includes the site and the forum, or the site and the wiki content? The searches are clearly going through expression engine and the content is also in the database, but I cannot find how to make those cross searches or have a global one that searches all content.
Maybe its not possible?
There is no general search results tag that returns the results of all those searches.
The forum’s searches and the wiki searches are logged to the search log table, but their search functionality code is different between them.
You could create a frankenstein of three search forms that had one keyword field outside the forms, and three buttons, “Search entries,” “Search forums” and “Search wiki”
Then dynamically (JS) put the content of the keyword field into each of those forms, and then do the same on each of the three results pages, so your user could jump between those search types.
Alternatively, you’d use a third-party service that indexed all the pages and content, instead of EE’s built-in search.
Not a perfect solution, but it’s doable if you really need that level of search integration.
Do also look at EE’s Pro Search, which has its own search log functionality 😊
I was afraid this would be the issue. I decided to drop the wiki addon anyway, the permissions and roles don’t work anymore for years, so it’s insecure to give anyone access and it has many other bugs or legacy stuff that will never work properly. It’s basically abandoned.
Makes more sense to replicate something similar with channels, I can assign edit permissions from templates, and they also have revisions and, of course, I can now use the regular search as well.
I suppose the forum is the same story, but seems better maintained, as it’s also used here, and it has direct integration with channel entries, something the wiki module never had in the first place. I tried using this for documentation, but the more I used it, the more I realized it’s a bad idea and I would be better off using regular channels and templates.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.