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

--- Comment #4 from Krinkle <krinklem...@gmail.com> 2011-08-14 13:57:00 UTC ---
Just brought this up on IRC. Seems it's not possible due to performance to
query multiple namespaces in the same query because the index is on
page_namespace,page_title. So that would mean that searching for "Foo" in
namespace 0, 5 and 10 would likely only give results for the namespace 0 since
it's ordered by namespace and then by page_title.

For it to make sense we'd have to do multiple queries (one for each of the
wanted namespaces). Then in PHP combine them and sort them by page_title and
then by namespacename (not namespace-id).

So prefix "Foo", with namespaces=0|2|4 would give:
['Foo', 'Abbawiki:Foo', 'User:Foobar']

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to