Support updating search index when page is deleted
authorChad Horohoe <chadh@wikimedia.org>
Tue, 18 Jun 2013 20:06:49 +0000 (16:06 -0400)
committerChad Horohoe <chadh@wikimedia.org>
Tue, 18 Jun 2013 21:41:13 +0000 (17:41 -0400)
commit96fb0c4d71e11cbfb026ea93d6e009fe4c2c0682
treee1b5fd6ae6eb51b1ccf815ade989817b3d2db6ae
parent368cc2e28d5cffcddb504af9e94eacba6612df52
Support updating search index when page is deleted

Right now, if you delete a page then you end up with a stale
entry in the search index, this affects all core SQL-based
searches.

For extensions, this means they no longer have to implement
something like ArticleDelete, they can just add the delete()
method to their SearchEngine subclass.

Change-Id: I9d8a9878aeebc53f453ab1cbacc03fe73fcca949
includes/WikiPage.php
includes/search/SearchEngine.php
includes/search/SearchMySQL.php
includes/search/SearchUpdate.php
tests/phpunit/includes/search/SearchUpdateTest.php