Smalyshev has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/343210 )

Change subject: Make mapping dump return all mappings, not just page mapping
......................................................................

Make mapping dump return all mappings, not just page mapping

Change-Id: I4fc24116c4afcf6f2b01e6477fb77e28fad29ce9
---
M includes/Api/MappingDump.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/10/343210/1

diff --git a/includes/Api/MappingDump.php b/includes/Api/MappingDump.php
index 76c23c5..93d962b 100644
--- a/includes/Api/MappingDump.php
+++ b/includes/Api/MappingDump.php
@@ -27,9 +27,9 @@
                $conn = $this->getCirrusConnection();
                $indexPrefix = $this->getSearchConfig()->get( 
SearchConfig::INDEX_BASE_NAME );
                foreach( $conn->getAllIndexTypes() as $index ) {
-                       $mapping = $conn->getPageType( $indexPrefix, $index 
)->getMapping();
+                       $mapping = $conn->getIndex( $indexPrefix, $index 
)->getMapping();
                        $this->getResult()->addValue( null, $index, $mapping );
-                       $this->getResult()->addPreserveKeysList( [ $index, 
'page' ], '_all' );
+                       $this->getResult()->addPreserveKeysList( [ $index ], 
'_all' );
                }
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4fc24116c4afcf6f2b01e6477fb77e28fad29ce9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to