[Wikitech-l] Making the query opensearch API working fine on a self hosted wikimedia server
Hi all, I'm Hicham from Paris. I just created a young company which mission is to make the web speak :) As a first step, I'm building a french version of *Wofram Alpha QA like * system based on dbpedia wikimedia API. As I had some issues to get quick API results for queries, I decided to install wikimedia and host my own version of the french Wikipedia. I did the install from scratch. Following the online documentation, I managed to do it using MWdumper http://izipedia.com/mediawiki/index.php?title=Wikip%C3%A9dia:Accueil_principal *My first issue is the following:* I have an article in wikipédia about this guy: http://izipedia.com/mediawiki/index.php?title=Andr%C3%A9_Manoukian When I search for it in the french official wikipedia api server I got a result http://fr.wikipedia.org/w/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 but not in my server http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 Although, in other cases opensearch works fine http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=new%20york Any idea ? *My second issue is the following:* Api calls never work with the param *query* See for example http://www.izipedia.com/mediawiki/api.php?action=querylist=searchformat=xmlsrsearch=new%20york wich once again is working really nicely in the official server http://fr.wikipedia.org/w/api.php?action=querylist=searchformat=xmlsrsearch=new%20york In advance thank you very much for your kind advices, best regards, Hicham -- *Hicham Tahiri | Founder of Vocal Apps* *+33760747891 | www.vocal-apps.com | @vocal_appshttp://www.twitter.com/vocal_apps * *24 rue de l'Est, Paris Incubateurs 75020 Paris* ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Making the query opensearch API working fine on a self hosted wikimedia server
On Wed, 2013-02-13 at 11:44 +0100, Hicham TAHIRI wrote: I have an article in wikipédia about this guy: http://izipedia.com/mediawiki/index.php?title=Andr%C3%A9_Manoukian When I search for it in the french official wikipedia api server I got a result http://fr.wikipedia.org/w/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 but not in my server http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 Although, in other cases opensearch works fine http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=new%20york Any idea ? Wild guess: Your HTML is not well-formed (unclosed elements like p or small) because many used templates (e.g. literal {{#if: 2-7499-0796-9 in the Manoukian article) are missing / uninterpreted. Templates used in the New York article don't include such markup. Make sure templates are installed and try again? :) andre -- Andre Klapper | Wikimedia Bugwrangler http://blogs.gnome.org/aklapper/ ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Making the query opensearch API working fine on a self hosted wikimedia server
Perhaps extension:TitleKey and/or extension:MWSearch ( with the lucene stuff). The default search stuff with no extensions is kind of rudimentary. -bawolff On 2013-02-13 7:17 AM, Andre Klapper aklap...@wikimedia.org wrote: On Wed, 2013-02-13 at 11:44 +0100, Hicham TAHIRI wrote: I have an article in wikipédia about this guy: http://izipedia.com/mediawiki/index.php?title=Andr%C3%A9_Manoukian When I search for it in the french official wikipedia api server I got a result http://fr.wikipedia.org/w/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 but not in my server http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 Although, in other cases opensearch works fine http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=new%20york Any idea ? Wild guess: Your HTML is not well-formed (unclosed elements like p or small) because many used templates (e.g. literal {{#if: 2-7499-0796-9 in the Manoukian article) are missing / uninterpreted. Templates used in the New York article don't include such markup. Make sure templates are installed and try again? :) andre -- Andre Klapper | Wikimedia Bugwrangler http://blogs.gnome.org/aklapper/ ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Making the query opensearch API working fine on a self hosted wikimedia server
Thanks Andre Brian ! In fact I didn't install any template ! Is there a tutorial about that ? Same for adding extensions, I didn't find a way to that from the admin panel ? Any link(s) will be welcome br hicham 2013/2/13 Andre Klapper aklap...@wikimedia.org On Wed, 2013-02-13 at 11:44 +0100, Hicham TAHIRI wrote: I have an article in wikipédia about this guy: http://izipedia.com/mediawiki/index.php?title=Andr%C3%A9_Manoukian When I search for it in the french official wikipedia api server I got a result http://fr.wikipedia.org/w/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 but not in my server http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=andre%20manoukiannamespace=0 Although, in other cases opensearch works fine http://izipedia.com/mediawiki/api.php?action=opensearchlimit=10format=xmlsearch=new%20york Any idea ? Wild guess: Your HTML is not well-formed (unclosed elements like p or small) because many used templates (e.g. literal {{#if: 2-7499-0796-9 in the Manoukian article) are missing / uninterpreted. Templates used in the New York article don't include such markup. Make sure templates are installed and try again? :) andre -- Andre Klapper | Wikimedia Bugwrangler http://blogs.gnome.org/aklapper/ ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l -- *Hicham Tahiri | Fondateur de Vocal Apps* *+33760747891 | www.vocal-apps.com | @vocal_appshttp://www.twitter.com/vocal_apps * *24 rue de l'Est, Paris Incubateurs 75020 Paris* ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Making the query opensearch API working fine on a self hosted wikimedia server
Wikipedia database dumps do include the site's templates; however, you need to install all the extensions listed under Greffons de l'analyseur syntaxique on http://fr.wikipedia.org/wiki/Sp%C3%A9cial:Version In particular, the ParserFunctions extension is necessary for {{#if: (used by many Wikipedia templates) to work correctly and not show up on screen. http://www.mediawiki.org/wiki/Extension:ParserFunctions On 02/13/2013 05:13 PM, Hicham TAHIRI wrote: Thanks Andre Brian ! In fact I didn't install any template ! Is there a tutorial about that ? Same for adding extensions, I didn't find a way to that from the admin panel ? Any link(s) will be welcome 2013/2/13 Andre Klapper aklap...@wikimedia.org Wild guess: Your HTML is not well-formed (unclosed elements like p or small) because many used templates (e.g. literal {{#if: 2-7499-0796-9 in the Manoukian article) are missing / uninterpreted. Templates used in the New York article don't include such markup. Make sure templates are installed and try again? :) -- Wikipedia user PleaseStand http://en.wikipedia.org/wiki/User:PleaseStand ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Making the query opensearch API working fine on a self hosted wikimedia server
I believe search is done on non-expanded wikitext, so I doubt that parser functions makes much of a difference (however it is important in order for your wikis not to be broken for human visitors). The two extensions I was talking about were: https://www.mediawiki.org/wiki/Extension:TitleKey which makes certain things be case insensitive. And more importantly https://www.mediawiki.org/wiki/Extension:MWSearchalong with https://www.mediawiki.org/wiki/Extension:Lucene-search . This will significantly improve your search results and is what wikipedia uses for search. However be warned that this a hard extension to install. (Probably the hardest to install of any mediawiki extension. ) -bawolff On 2013-02-13 6:34 PM, Kevin Israel pleasest...@live.com wrote: Wikipedia database dumps do include the site's templates; however, you need to install all the extensions listed under Greffons de l'analyseur syntaxique on http://fr.wikipedia.org/wiki/Sp%C3%A9cial:Version In particular, the ParserFunctions extension is necessary for {{#if: (used by many Wikipedia templates) to work correctly and not show up on screen. http://www.mediawiki.org/wiki/Extension:ParserFunctions On 02/13/2013 05:13 PM, Hicham TAHIRI wrote: Thanks Andre Brian ! In fact I didn't install any template ! Is there a tutorial about that ? Same for adding extensions, I didn't find a way to that from the admin panel ? Any link(s) will be welcome 2013/2/13 Andre Klapper aklap...@wikimedia.org Wild guess: Your HTML is not well-formed (unclosed elements like p or small) because many used templates (e.g. literal {{#if: 2-7499-0796-9 in the Manoukian article) are missing / uninterpreted. Templates used in the New York article don't include such markup. Make sure templates are installed and try again? :) -- Wikipedia user PleaseStand http://en.wikipedia.org/wiki/User:PleaseStand ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Making the query opensearch API working fine on a self hosted wikimedia server
On 02/13/2013 09:20 PM, Brian Wolff wrote: And more importantly https://www.mediawiki.org/wiki/Extension:MWSearchalong There was a typo. The URL is https://www.mediawiki.org/wiki/Extension:MWSearch Matt Flaschen ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l