Demon has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/79077


Change subject: SearchUpdate cleanups for CirrusSearch
......................................................................

SearchUpdate cleanups for CirrusSearch

SearchUpdate hook no longer exists, so don't bother registering
for it. Also return true for textAlreadyUpdatedForIndex() since
we handle all our text processing in getTextFromContent()

Change-Id: I87a5b8cc4603d02327759d95842bd22f76692f18
---
M CirrusSearch.body.php
M CirrusSearch.php
2 files changed, 4 insertions(+), 1 deletion(-)


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

diff --git a/CirrusSearch.body.php b/CirrusSearch.body.php
index 22c88aa..2673975 100644
--- a/CirrusSearch.body.php
+++ b/CirrusSearch.body.php
@@ -424,6 +424,10 @@
                }
                return $text;
        }
+
+       public function textAlreadyUpdatedForIndex() {
+               return true;
+       }
 }
 
 /**
diff --git a/CirrusSearch.php b/CirrusSearch.php
index 57c8e83..312cc4d 100644
--- a/CirrusSearch.php
+++ b/CirrusSearch.php
@@ -122,7 +122,6 @@
  * Hooks
  * Also check Setup for other hooks.
  */
-$wgHooks['SearchUpdate'][] = function() { return false; };
 $wgHooks['LinksUpdateComplete'][] = 'CirrusSearch::linksUpdateCompletedHook';
 
 /**

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

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

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

Reply via email to