Oh thanks a lot! ... is it possible to get the snippets as well .. like for each hit I get the title, the snippet and the categories it blongs to?
Thanks a lot, also, let me know if there is a special paper you want me to reference in case I publish this.
Best, --Yassine.
On Tue, Oct 19, 2010 at 11:27 AM, Roan Kattouw roan.kattouw@gmail.com wrote:
2010/10/19 Yassine Benajiba benajibayassine@gmail.com:
http://en.wikipedia.org/w/api.php?action=query&titles=Albert%20Einstein&...
how can I get the same info by using list=search. For instance, when I do: http://en.wikipedia.org/w/api.php?action=query&list=search&srwhat=te... I don't get any categories info
Use a generator:
http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrw...
This'll get 50 search results for Albert Einstein, then get the first 50 categories for each of those pages.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api