Last modified: 2014-09-05 18:29:33 UTC
[Not sure it more relevant for CirrcusSearch or for Opensearch API action but it may be useful enhancement for both] A good idea for search enhancement from hewiki Village pump is to use sortkey of categories for searching. Many users try to search first the last name e.g for locating "Barack Obama" article they search for Obama, or Obama, Barack. If the search use suggestions based of default sort of category ({{DEFAULTSORT:Obama, Barack}}), people may find it easier, without need for manual redirect from "Obama, Barack".
Very interesting and makes sense to me. Storing the defaultsort should be pretty cheap.
Actually, now that I think about it it could be kind of confusing for people searching if the defaultsort is set to something other than just a rearranging of words in the title. Instead, maybe what we need is to enable $wgCirrusSearchPrefixSearchStartsWithAnyWord everywhere so typing "Obama" will suggest "Barack Obama"
PrefixSearchStartsWithAnyWord seems to be better option, is there already existing configuration for wgCirrusSearchPrefixSearchStartsWithAnyWord?
Is there already existing configuration for $wgCirrusSearchPrefixSearchStartsWithAnyWord? If not is it hard to implement?