On Wed, Feb 1, 2012 at 7:29 PM, Parsa <[email protected]> wrote: > Dear Members, > > I'm using mediawiki API to get a result with the following code: > http://en.wikipedia.org/w/api.php?action=opensearch&search=pc&limit=20&format=xml > > But if you look at this link: http://en.wikipedia.org/wiki/PC > there is description like this: > PC most commonly refers to: > * Personal computer, a computer whose original sales price, size, and > capabilities make it useful for individuals > * Political correctness, language or behavior that appears calculated to > provide a minimum of offense > > but with my API, I cannot get such a result. Please help me, how can i > change my API to get a result like above. > > Actually, I want to send an acronym word (e.g. PC) via API and get the > suggestions. (e.g: Personal computer, Political Correctness) > > Please help me to find a solution for that, I searched a lot and I could not > find any solution for that. > The opensearch API does title matches *only*. If you want to search in the content of pages as well, you should use list=search.
Roan _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
