Hello,
Is there some issue going on with the search API. The returned results appear to be a bit off.
For example
http://www.mediawiki.org/w/api.php?action=query&list=search&srsearch...
returns
<?xml version="1.0"?> <api> <query> <searchinfo totalhits="10" suggestion="Count" /> <search> <p ns="0" title="*Wikidata*" snippet="A data-numbers table: page_id revision_id name value - 301 2044 <span class='searchmatch'>country</span>_population 80000000 301 2040 <span class='searchmatch'>country</span>_population 75000000 <b>...</b> " size="13242" wordcount="1760" timestamp="2010-08-15T13:43:24Z" /> <p ns="0" title="*Hit stats aggregation*" snippet="Page views : geoip lookup (<span class='searchmatch'>country</span> or city-resolution?) Image views : What's available from each hit: image name. thumbnail pixel width <b>...</b> " size="2161" wordcount="311" timestamp="2010-01-03T08:04:51Z" /> <p ns="0" title="<?xml version="1.0"?> <api> <query> <searchinfo totalhits="10" suggestion="Count" /> <search> <p ns="0" title="*Wikidata*" snippet="A data-numbers table: page_id revision_id name value - 301 2044 <span class='searchmatch'>country</span>_population 80000000 301 2040 <span class='searchmatch'>country</span>_population 75000000 <b>...</b> " size="13242" wordcount="1760" timestamp="2010-08-15T13:43:24Z" /> <p ns="0" title="*Hit stats aggregation*" snippet="Page views : geoip lookup (<span class='searchmatch'>country</span> or city-resolution?) Image views : What's available from each hit: image name. thumbnail pixel width <b>...</b> " size="2161" wordcount="311" timestamp="2010-01-03T08:04:51Z" /> <p ns="0" title="*WMDE contract offers*" snippet="Your real name and <span class='searchmatch'>country</span> of residence. How you plan to go about implementing the desired function. Any experience working with MediaWiki <b>...</b> " size="1483" wordcount="206" timestamp="2010-04-09T18:31:35Z" /> <p ns="0" title="*Sites using MediaWiki/en*" snippet="com : The Unofficial ASEAN Tourism Encyclopedia, the reference guide to 10 Southeast Asian <span class='searchmatch'>Countries</span>. Asian Business Round Table - http:// <b>...</b> " size="138820" wordcount="19314" timestamp="2010-10-30T19:15:23Z" /> <p ns="0" title="Namespace manager" snippet="In the context of Wikidata, they are intended to segregate different types of structured content, such as person data, <span class='searchmatch'>country</span> information <b>...</b> " size="11305" wordcount="1693" timestamp="2010-10-26T05:31:01Z" /> <p ns="0" title="InstantCommons" snippet="It does not permit offline viewing, which is crucial in <span class='searchmatch'>countries</span> which have only intermittent network access. InstantCommons seeks to <b>...</b> " size="6505" wordcount="985" timestamp="2010-09-22T08:38:28Z" /> <p ns="0" title="List of extensions to be merged to the core" snippet="There are laws in some <span class='searchmatch'>countries</span> forbidding logging of IPs, etc. So it should be disabled by default. Soxred93 00:35, 26 January 2009 <b>...</b> " size="8676" wordcount="857" timestamp="2010-09-22T12:42:56Z" /> <p ns="0" title="Summer of Code 2009" snippet="Bot for automation interwikis adding for categories by <span class='searchmatch'>countries</span>, albums by artist, interwikis for categories based on interwikis for <b>...</b> " size="12337" wordcount="1677" timestamp="2010-03-12T12:14:19Z" /> <p ns="0" title="Sites using MediaWiki/corporate" snippet="With more than 50,000 customers in 43 <span class='searchmatch'>countries</span>, Novell helps customers manage, simplify, secure and integrate their technology <b>...</b> " size="23008" wordcount="3174" timestamp="2010-10-21T16:40:06Z" /> </search> </query> </api>" snippet="Your real name and <span class='searchmatch'>country</span> of residence. How you plan to go about implementing the desired function. Any experience working with MediaWiki <b>...</b> " size="1483" wordcount="206" timestamp="2010-04-09T18:31:35Z" /> <p ns="0" title="Sites using MediaWiki/en" snippet="com : The Unofficial ASEAN Tourism Encyclopedia, the reference guide to 10 Southeast Asian <span class='searchmatch'>Countries</span>. Asian Business Round Table - http:// <b>...</b> " size="138820" wordcount="19314" timestamp="2010-10-30T19:15:23Z" /> <p ns="0" title="Namespace manager" snippet="In the context of Wikidata, they are intended to segregate different types of structured content, such as person data, <span class='searchmatch'>country</span> information <b>...</b> " size="11305" wordcount="1693" timestamp="2010-10-26T05:31:01Z" /> <p ns="0" title="InstantCommons" snippet="It does not permit offline viewing, which is crucial in <span class='searchmatch'>countries</span> which have only intermittent network access. InstantCommons seeks to <b>...</b> " size="6505" wordcount="985" timestamp="2010-09-22T08:38:28Z" /> <p ns="0" title="List of extensions to be merged to the core" snippet="There are laws in some <span class='searchmatch'>countries</span> forbidding logging of IPs, etc. So it should be disabled by default. Soxred93 00:35, 26 January 2009 <b>...</b> " size="8676" wordcount="857" timestamp="2010-09-22T12:42:56Z" /> <p ns="0" title="Summer of Code 2009" snippet="Bot for automation interwikis adding for categories by <span class='searchmatch'>countries</span>, albums by artist, interwikis for categories based on interwikis for <b>...</b> " size="12337" wordcount="1677" timestamp="2010-03-12T12:14:19Z" /> <p ns="0" title="Sites using MediaWiki/corporate" snippet="With more than 50,000 customers in 43 <span class='searchmatch'>countries</span>, Novell helps customers manage, simplify, secure and integrate their technology <b>...</b> " size="23008" wordcount="3174" timestamp="2010-10-21T16:40:06Z" /> </search> </query> </api>
Thanks
Prateek
On 11/2/2010 8:17 PM, Prateek wrote:
Hello,
Is there some issue going on with the search API. The returned results appear to be a bit off.
And what exactly is wrong with those results?
None of them seem to be related to the main articles on Wikipedia related to the term.
Here is another example
http://www.mediawiki.org/w/api.php?action=query&prop=categories&titl...
Finding Categories to which Albert Einstein page belongs.
Returns nothing at all.
*Prateek Jain* *PhD Student, Research Assistant* *Kno.e.sis Center, Wright State University* *Dayton,OH 45435* *Web: http://wiki.knoesis.org/index.php/Prateek* *Email: prateek@knoesis.org* *Phone: (770) 406-6356*
On 11/2/10 6:40 PM, Q wrote:
On 11/2/2010 8:17 PM, Prateek wrote:
Hello,
Is there some issue going on with the search API. The returned results appear to be a bit off.
And what exactly is wrong with those results?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On 11/2/2010 8:44 PM, Prateek wrote:
None of them seem to be related to the main articles on Wikipedia related to the term.
Here is another example
http://www.mediawiki.org/w/api.php?action=query&prop=categories&titl...
Finding Categories to which Albert Einstein page belongs.
Well you are searching mediawiki.org and not one of the 'pedias.
mediawiki-api@lists.wikimedia.org