I want to search the mediawiki database and get the page with the closest match to my search text. For example, on entering the search string "igor stravinsky persephone" I want to get a link to this page: http://en.wikipedia.org/wiki/Pers%C3%A9phone_%28Stravinsky%29
The following query /w/api.php?action=query&list=search&format=xml&srsearch=igor%20stravinsky%20persephone&srlimit=1 almost gets what I want but the data returns does not include the pageid:
<p ns="0" title="Perséphone (Stravinsky)" snippet="(<span class='searchmatch'>Persephone</span> ) is a musical work (mélodrame) for speaker, solo singers, chorus, dancers and orchestra with music by <span class='searchmatch'>Igor</span> <span class='searchmatch'>Stravinsky</span> and a <b>...</b> " size="2500" wordcount="313" timestamp="2012-05-13T07:21:00Z" />
Is this the right way to go about it? Is the title returned a unique ID which I can use to get more detail of the page?
Query it as a generator: https://en.wikipedia.org/w/api.php?action=query&generator=search&for...
Unfortunately, that discards all meta data provided by the search query module.
Bryan
On Thu, Jul 26, 2012 at 10:23 AM, Jeremy Bradshaw jbradshaw7@gmail.com wrote:
I want to search the mediawiki database and get the page with the closest match to my search text. For example, on entering the search string "igor stravinsky persephone" I want to get a link to this page: http://en.wikipedia.org/wiki/Pers%C3%A9phone_%28Stravinsky%29
The following query /w/api.php?action=query&list=search&format=xml&srsearch=igor%20stravinsky%20persephone&srlimit=1 almost gets what I want but the data returns does not include the pageid:
<p ns="0" title="Perséphone (Stravinsky)" snippet="(<span
class='searchmatch'>Persephone</span> ) is a musical work (mélodrame) for speaker, solo singers, chorus, dancers and orchestra with music by <span class='searchmatch'>Igor</span> <span class='searchmatch'>Stravinsky</span> and a <b>...</b> " size="2500" wordcount="313" timestamp="2012-05-13T07:21:00Z" />
Is this the right way to go about it? Is the title returned a unique ID which I can use to get more detail of the page?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
*HIGH-QUALITY EARNINGS*
*business communication***
* *
* *
*WE OFFER Exceptional monthly earnings by 1.000 EUR ABOVE. *
*Do not believe? Click here: *
* *
*http://www.youtube.com/watch?feature=player_embedded&v=75KxIJVWQas*http://www.youtube.com/watch?feature=player_embedded&v=75KxIJVWQas * *
*For faster communication we answer you from our e-mail adress: ** malsovsky@gmail.com* malsovsky@gmail.com* *
*Dear Friends, on the basis of previous correspondence you send documents to CENTRAL CARBON NETWORK - save the rainforests. Thus, lung planet. It is a more solid business. Feel free to join as soon as possible to our team! You will not regret it. If you wish to register, click on this link, please. *
*http://www.carboncentralnetwork.com/malsak*http://www.carboncentralnetwork.com/malsak **
*Further and more detailed info see the attached presentation below, just click again. Sacrifice your time and this information. They will help you in starting and developing your business. The presentations are bilingual, English-Slovak and Slovak-English.*
* *
* **http://www.youtube.com/watch?feature=player_embedded&v=YbnjHVBp-9Q*http://www.youtube.com/watch?feature=player_embedded&v=YbnjHVBp-9Q * **http://www.youtube.com/watch?feature=player_embedded&v=62lT1941z7s*http://www.youtube.com/watch?feature=player_embedded&v=62lT1941z7s * **http://www.youtube.com/watch?feature=player_embedded&v=DdYdhYhHW2c*http://www.youtube.com/watch?feature=player_embedded&v=DdYdhYhHW2c * **http://www.youtube.com/watch?feature=player_embedded&v=3HbgwP_CA6U*http://www.youtube.com/watch?feature=player_embedded&v=3HbgwP_CA6U * *
* *
*If you have any questions, please contact us by email or on skype: "Malsacek"*
*Respectfully and Sincerely, George Jiří Malšovský and team CCN*
* *
2012/7/26 Bryan Tong Minh bryan.tongminh@gmail.com
Query it as a generator:
https://en.wikipedia.org/w/api.php?action=query&generator=search&for...
Unfortunately, that discards all meta data provided by the search query module.
Bryan
On Thu, Jul 26, 2012 at 10:23 AM, Jeremy Bradshaw jbradshaw7@gmail.com wrote:
I want to search the mediawiki database and get the page with the closest match to my search text. For example, on entering the search string "igor stravinsky persephone" I want to get a link to this page: http://en.wikipedia.org/wiki/Pers%C3%A9phone_%28Stravinsky%29
The following query
/w/api.php?action=query&list=search&format=xml&srsearch=igor%20stravinsky%20persephone&srlimit=1
almost gets what I want but the data returns does not include the pageid:
<p ns="0" title="Perséphone (Stravinsky)" snippet="(<span
class='searchmatch'>Persephone</span> ) is a musical
work
(mélodrame) for speaker, solo singers, chorus, dancers and orchestra with music by <span class='searchmatch'>Igor</span> <span class='searchmatch'>Stravinsky</span> and a <b>...</b> " size="2500" wordcount="313" timestamp="2012-05-13T07:21:00Z" />
Is this the right way to go about it? Is the title returned a unique ID which I can use to get more detail of the page?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Thanks - is there any way I can perform a search and get the page URLs in a single query?
On 26 July 2012 10:36, Bryan Tong Minh bryan.tongminh@gmail.com wrote:
Query it as a generator:
https://en.wikipedia.org/w/api.php?action=query&generator=search&for...
Unfortunately, that discards all meta data provided by the search query module.
Bryan
On Thu, Jul 26, 2012 at 10:23 AM, Jeremy Bradshaw jbradshaw7@gmail.com wrote:
I want to search the mediawiki database and get the page with the closest match to my search text. For example, on entering the search string "igor stravinsky persephone" I want to get a link to this page: http://en.wikipedia.org/wiki/Pers%C3%A9phone_%28Stravinsky%29
The following query
/w/api.php?action=query&list=search&format=xml&srsearch=igor%20stravinsky%20persephone&srlimit=1
almost gets what I want but the data returns does not include the pageid:
<p ns="0" title="Perséphone (Stravinsky)" snippet="(<span
class='searchmatch'>Persephone</span> ) is a musical
work
(mélodrame) for speaker, solo singers, chorus, dancers and orchestra with music by <span class='searchmatch'>Igor</span> <span class='searchmatch'>Stravinsky</span> and a <b>...</b> " size="2500" wordcount="313" timestamp="2012-05-13T07:21:00Z" />
Is this the right way to go about it? Is the title returned a unique ID which I can use to get more detail of the page?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org