https://bugzilla.wikimedia.org/show_bug.cgi?id=30229

--- Comment #3 from Brion Vibber <[email protected]> 2011-08-04 20:24:11 UTC 
---
That there's some specific support for search form queries accepting a 'prefix'
query string parameter which gets passed through to the underlying search
engine (currently only supported by Lucene via MWSearch extension, by sticking
a 'prefix:'+val into the query in its transformSearchTerm method.)

This I think got introduced for use with the <inputbox> extension and is used
fairly extensively to create custom search forms within various project
hierarchies on some of our wikis.

For use on, say, Incubator, it could be *really* nice to have the search box
default to looking within the current language/project.


I suspect we can hack this up for Incubator extension in some way; adding a
hidden field with the 'prefix' field value to the search form should do the
job. If it's not directly manipulable through a hook, one could probably add it
from JavaScript at runtime; not ideal but should be possible as a quick fix.

It would also help to implement the prefix support in the default MySQL search
engine, as this would certainly aid folks testing the Incubator extension. This
should be broken out to a separate bug though.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to