Closed Bug 460233 Opened 16 years ago Closed 16 years ago

Allow switching between new and old sumo search depending on admin parameter

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nkoth, Assigned: ecooper)

References

()

Details

(Whiteboard: sumo_only)

Attachments

(2 files)

Need to direct current search box to the new sumo search instead of the existing one in the presence of a specific query string var
Target Milestone: 0.7.2 → 0.7.3
No longer blocks: 460203
Also needs an admin UI to allow enable/disable new search.
Assignee: nelson → smirkingsisyphus
Right now, to use the new search, you need to manually enter queries into tiki-newsearch.php

There is no way to use the existing search boxes (main screen), and search module on right column.

We want an admin setting in the TikiWiki admin panel to switch between using Original search (current) and Sphinx search (new).

This switch will make the search boxes use tiki-newsearch.php instead.

(The uery string part was just an idea to use the new search). On second thoughts, maybe query string var is not the best way to implement this, as just template modifications might work.
Summary: Use new sumo search in the presence of specific query string var → Allow switching between new and old sumo search depending on admin parameter
Actually, the query string part might come in useful in testing. So that it is possible to override the admin setting  to test the new search , without actually having to change the admin setting (which will affect all users).

Can you do that also?

> (The uery string part was just an idea to use the new search). On second
> thoughts, maybe query string var is not the best way to implement this, as just
> template modifications might work.
The on/off switch is a pref set in tiki-admin_newsearch.php. Turning it on, will make it active in all searchlogo search boxes, which are the searches with the Firefox graphics around them.

The optional query string used to call the new search version of the search box happens with "&ns=y". This has to be specified and loaded by the page with the search box.
Attachment #349807 - Flags: review?(nelson)
This patch seems to make the search box on the forum pages not appear. e.g. at tiki-forums.php. Does it affect you too?
Hmm...It works for me.

Entering a search will take you to tiki-newsearch with &where=f.
The only why that it won't be showing up is that if it's not called from templates/styles/mozfr/tiki.tpl (it's a static call, so that shouldn't happen) or if there's a syntax error in searchbar.tpl...but if that were the case it shouldn't be appearing anywhere.
it seems to have resolved itself for me - maybe it is a smarty cache problem or something.

(In reply to comment #7)
> The only why that it won't be showing up is that if it's not called from
> templates/styles/mozfr/tiki.tpl (it's a static call, so that shouldn't happen)
> or if there's a syntax error in searchbar.tpl...but if that were the case it
> shouldn't be appearing anywhere.
Comment on attachment 349807 [details] [diff] [review]
Ability to use tiki-newsearch.php from search boxes

in r20226/r20227
Does this mean this bug is fixed?
It just occurred to me that the changes won't apply to the sidebar search box. It's a module, and it doesn't seem to be anywhere in my dev instance. If someone can point me in the right direction, I can make the needed changes to that as well.
Can someone with admin access on support-stage make sure to turn on the new search from tiki-newsearch.php?

The switch for it is on the very top of the page.
Comment on attachment 349807 [details] [diff] [review]
Ability to use tiki-newsearch.php from search boxes

in r20226/r20227
Attachment #349807 - Flags: review?(nelson) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: