Searching the list and I figure that the search API is currently broke? If so I guess I can / should use the "list=allpages" API for a temporary hack. Any god-beings out there that can advise?
Ben Srour wrote:
- I'm sorry, I don't know what that means. :)
*>* *>* What action should I take as a consumer of the API? *>* *>* Thanks *>* Ben
As a consumer? Wait for the god-beings to fix it. Or you may become a developer and fix it ;)
David Bovill schreef:
Searching the list and I figure that the search API is currently broke? If so I guess I can / should use the "list=allpages" API for a temporary hack. Any god-beings out there that can advise?
API search is not really broken. It just hasn't been implemented for all search backends yet, including the backend Wikipedia and friends use (Lucene). What you can do (expensive) is request the contents of all pages using:
http://en.wikipedia.org/w/api.php?action=query&generator=allpages&ga...
This will give you the contents of the first 50 pages. To continue, read the gapfrom value in the query-continue tag ("!Xo language" in this example) and add it to the query string. It'll take forever to go through a large wiki this way, so it's not really a good solution. If the wiki you're trying to search doesn't use Lucene, list=search will just work.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org