Instead of returning just the redirect page name, like the "title" value does, "redirecttitle" returns the entire Title object. This appears to be the fault of ApiQuerySearch.php rather than any specific search engine.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
API: Don't dump Title object into API result | mediawiki/core | master | +1 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Anomie | T88397 redirecttitle in API:Search returns title object instead of text | |||
Invalid | None | T88482 pywikibot should strip title object from search results for older releases |
Event Timeline
Comment Actions
Change 188372 had a related patch set uploaded (by Anomie):
API: Don't dump Title object into API result
Comment Actions
The code was added in ce9bd769 in Nov 1 2010. Certainly it was intended to return only the title instead of the entire object. But for the last 4 years the API delivers the object. Are there any clients that expect the current structure?
Comment Actions
FYI: This not effect format=xml because it calls toString for objects (internal reasons).
Comment Actions
Announced to mediawiki-api-announce, see https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2015-February/000077.html
Comment Actions
Sounds like a similar thing to T45518 - but with a Title object rather than another User.