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

Change subject: Add noop hint for Descriptions too
......................................................................

Add noop hint for Descriptions too

Bug: T180382
Change-Id: I6f348c0ae7e64c2cffa844ac85b5cc63a9ea6738
---
M repo/includes/Search/Elastic/Fields/DescriptionsField.php
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/46/391146/1

diff --git a/repo/includes/Search/Elastic/Fields/DescriptionsField.php 
b/repo/includes/Search/Elastic/Fields/DescriptionsField.php
index afd0980..c7410a2 100644
--- a/repo/includes/Search/Elastic/Fields/DescriptionsField.php
+++ b/repo/includes/Search/Elastic/Fields/DescriptionsField.php
@@ -53,4 +53,12 @@
                return $data;
        }
 
+       public function getEngineHints( SearchEngine $engine ) {
+               if ( !( $engine instanceof CirrusSearch ) ) {
+                       // For now only Cirrus/Elastic is supported
+                       return [];
+               }
+               return [ \CirrusSearch\Search\CirrusIndexField::NOOP_HINT => 
"equals" ];
+       }
+
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6f348c0ae7e64c2cffa844ac85b5cc63a9ea6738
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <smalys...@wikimedia.org>

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

Reply via email to