jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370955 )

Change subject: Add page id to the API representation of pages in search results
......................................................................


Add page id to the API representation of pages in search results

'pageid' is now an always-on property returned by API:Search.
Change made in ApiQuerySearch.php::getSearchResultData().

Bug: T172700
Change-Id: I9d856efdd1d72c70bf9fb72c82b1f276abef8b16
---
M includes/api/ApiQuerySearch.php
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Addshore: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php
index 0dd8922..f0c4180 100644
--- a/includes/api/ApiQuerySearch.php
+++ b/includes/api/ApiQuerySearch.php
@@ -233,6 +233,7 @@
 
                $title = $result->getTitle();
                ApiQueryBase::addTitleInfo( $vals, $title );
+               $vals['pageid'] = $title->getArticleID();
 
                if ( isset( $prop['size'] ) ) {
                        $vals['size'] = $result->getByteSize();

-- 
To view, visit https://gerrit.wikimedia.org/r/370955
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9d856efdd1d72c70bf9fb72c82b1f276abef8b16
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: ShapeOfMatter <mako.ba...@maine.edu>
Gerrit-Reviewer: Addshore <addshorew...@gmail.com>
Gerrit-Reviewer: Anomie <bjor...@wikimedia.org>
Gerrit-Reviewer: Brian Wolff <bawolff...@gmail.com>
Gerrit-Reviewer: Thiemo M├Ąttig (WMDE) <thiemo.maet...@wikimedia.de>
Gerrit-Reviewer: WMDE-Fisch <christoph.jau...@wikimedia.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to