Thanks a lot.
This is the type of fucntionnality I was looking for. Regards, -- Aurelien On Tue, Apr 1, 2008 at 6:58 PM, Aurelien Dusween wrote: > > Hi, > > I am trying to send queries to my installation of MediaWiki outside of > MediaWiki. > I want to build a test application that searches a major search engine but > also the MediaWiki install. > > I use the API with the list=search call but I don't get a lot of information > out of it. > Example of call and result: > > - Call > > http://127.0.0.1/wiki/api.php?action=query&list=search&srsearch=success&srwhat=text&srnamespace=0|1|2|3|4|5&format=xml > > - Result > > > > > > > > > > > > > > > Is there any way I could get a teaser for each page (like the teasers that > you get when you actually search on the wiki)? > > Like: > > > ============================================================================== > Page text matches > > 1. Testwiki talk:Britney Spears (6,398 bytes) > 76: ...n 2 million copies worldwide but whose commercial success pales > in comparison to the singer's heyday six ye... > 2. User talk:Alscoor (10,093 bytes) > 80: ...n 2 million copies worldwide but whose commercial success pales > in comparison to the singer's heyday six ye... > 3. Talk:Main Page (9,035 bytes) > 7: ...erson of the Year 2006, praising the accelerating success of > on-line collaboration and interaction by milli... > 4. Testwiki:Britney Spears (1,500 bytes) > 1: ... having sold 32 million albums in the U.S.[2] Her success as a > recording artist has allowed her to work in ... > 3: ...um Oops!… I Did It Again in 2000 with continued success.[5][3] A > third album Britney was released in 2001... > 5. Christina Aguilera (55,982 bytes) > 1: ...ations followed which garnered Aguilera worldwide success, but > she was displeased with the lack of input in... > 3: .... The second single, "Beautiful" was a commercial success and > sustained the album's sales. > 116: In light of the tour's success, another U.S. tour was scheduled to > begin in mid ... > 139: ...ead single "Ain't No Other Man" was a substantial success, > reaching #2 on the United World Chart, #6 in the.. > > ============================================================================== > > Thanks in advance. > > Regards, > _________________________________________________________________ > The next generation of Windows Live is here > http://www.windowslive.co.uk/get-live > _______________________________________________ > Mediawiki-api mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api > Try using a generator: _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api _________________________________________________________________ Get Hotmail on your mobile. Text MSN to 63463 now! http://mobile.uk.msn.com/pc/mail.aspx _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
