[20:34:34] preilly: https://www.mediawiki.org/wiki/Manual:Hooks/MediaWikiPerformAction [20:35:01] RoanKattouw: okay [20:35:05] RoanKattouw: thanks! [20:55:33] RoanKattouw: that hook causes another issue [20:55:43] RoanKattouw: if I call it I never get to the other hook [21:01:41] preilly: Oh, right, if OutputPage is disabled, BeforePageDisplay never runs [21:01:58] RoanKattouw: yeah, that's a bit of an issue [21:02:10] Hm [21:02:21] preilly: I think there's literally no way to do what you want unless you change core [21:02:32] RoanKattouw: okay, thanks [21:02:33] Because you want output() to do all the processing but not actually output it [21:02:53] yeah [21:24:14] RoanKattouw: i'd like to be able to get search suggestions from the query api on my local instance of mediawiki. it doesn't seem to 'just work' for me. is there something i need to enable in my localsettings to make it go? [21:24:44] awjr: Hmm, possibly. $wgEnableMWSuggest maybe? [21:24:51] Or some $wg with MWSuggest in its name [21:25:08] hehehe ok thnx [21:26:06] $wgEnableMWSuggest = true; [21:26:08] no workie [21:26:10] RoanKattouw: no dice :( [21:26:14] what prilly said. [21:27:11] You are using action=opensearch ? [21:27:22] nono [21:27:26] action=query [21:27:32] query [21:27:32] like: api.php?action=query&list=search&srsearch=aple&srinfo=suggestion [21:27:34] oh [21:27:43] What kind of search suggestions are you after exactly? [21:27:48] srinfo=suggestion ?? That exists now? [21:27:56] RoanKattouw: yes [21:27:57] yep [21:27:59] jinx [21:28:18] RoanKattouw: so? [21:28:35] I don't know how that thing works, I didn't write it [21:29:01] i dont believe you [21:31:37] Krinkle: howdy [21:31:59] Hi [21:32:10] Krinkle: do you know how to get this: api.php?action=query&list=search&srsearch=quarrk&srinfo=suggestion working locally? [21:33:44] preilly: I'm not sure I follow. it's standard mw core, works locally by default, for me at least [21:34:01] if not, then Reedy or RoanKattouw probably knows why [21:34:05] just tested it [21:34:07] RoanKattouw: doesn't [21:34:24] Krinkle: but, locally do you see a suggested spelling correction? [21:34:25] works for me [21:34:34] preilly: Do you just need prefix search suggestions like the search bar on Wikipedia? [21:34:54] need spelling suggestion [21:35:01] RoanKattouw: i'm looking for search suggestions for something like "Did you mean..." [21:35:01] that exists? [21:35:12] Oh [21:35:16] I did not know that existed [21:35:32] autocomplete is opensearch api [21:35:39] http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=aple&srinfo=suggestion [21:35:56] look at the searchinfo node - there's a 'suggestion' property there [21:37:11] probably related to the search backend used [21:37:27] eg lucene or something? [21:37:44] preilly: locally you likely have local settings set to MySQL full text search. Lucene is much more advanced but afaik not trivial to set up locally. [21:39:06] Ryan_Lane: does enwiki instance on labs use lucene? [21:43:06] I dunno [21:43:17] I haven't been involved in that project [21:43:34] if it has search, it should be using lucene, though