We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Search_type parameter

How Do I?

vw000's avatar
vw000
482 posts
one year ago
vw000's avatar vw000

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?

       
Hop Studios's avatar
Hop Studios
481 posts
one year ago
Hop Studios's avatar Hop Studios

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 😊

       
vw000's avatar
vw000
482 posts
one year ago
vw000's avatar vw000

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.