CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Remediation actions for insanity in the search index. More...
Public Member Functions | |
redirectInIndex (WikiPage $page) | |
There is a redirect in the index. | |
pageNotInIndex (WikiPage $page) | |
A page isn't in the index. | |
ghostPageInIndex ( $docId, Title $title) | |
A non-existent page is in the index. | |
pageInWrongIndex ( $docId, WikiPage $page, $indexSuffix) | |
An existent page is in more then one index. | |
oldVersionInIndex ( $docId, WikiPage $page, $indexSuffix) | |
oldDocument (WikiPage $page) | |
Remediation actions for insanity in the search index.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
CirrusSearch\Sanity\Remediator::ghostPageInIndex | ( | $docId, | |
Title | $title ) |
A non-existent page is in the index.
Odds are good it was deleted.
string | $docId | elsaticsearch document id of the deleted page |
Title | $title | title of the page read from the ghost |
Implemented in CirrusSearch\Sanity\AllClustersQueueingRemediator, CirrusSearch\Sanity\BufferedRemediator, CirrusSearch\Sanity\NoopRemediator, CirrusSearch\Sanity\PrintingRemediator, and CirrusSearch\Sanity\QueueingRemediator.
CirrusSearch\Sanity\Remediator::oldDocument | ( | WikiPage | $page | ) |
WikiPage | $page | Page considered too old in index |
Implemented in CirrusSearch\Sanity\AllClustersQueueingRemediator, CirrusSearch\Sanity\BufferedRemediator, CirrusSearch\Sanity\NoopRemediator, CirrusSearch\Sanity\PrintingRemediator, and CirrusSearch\Sanity\QueueingRemediator.
CirrusSearch\Sanity\Remediator::oldVersionInIndex | ( | $docId, | |
WikiPage | $page, | ||
$indexSuffix ) |
string | $docId | elasticsearch document id |
WikiPage | $page | page with outdated document in index |
string | $indexSuffix | index contgaining outdated document |
Implemented in CirrusSearch\Sanity\QueueingRemediator, CirrusSearch\Sanity\AllClustersQueueingRemediator, CirrusSearch\Sanity\BufferedRemediator, CirrusSearch\Sanity\NoopRemediator, and CirrusSearch\Sanity\PrintingRemediator.
CirrusSearch\Sanity\Remediator::pageInWrongIndex | ( | $docId, | |
WikiPage | $page, | ||
$indexSuffix ) |
An existent page is in more then one index.
string | $docId | elasticsearch document id |
WikiPage | $page | page in too many indexes |
string | $indexSuffix | index suffix that the page is in but shouldn't be in |
Implemented in CirrusSearch\Sanity\AllClustersQueueingRemediator, CirrusSearch\Sanity\BufferedRemediator, CirrusSearch\Sanity\NoopRemediator, CirrusSearch\Sanity\PrintingRemediator, and CirrusSearch\Sanity\QueueingRemediator.
CirrusSearch\Sanity\Remediator::pageNotInIndex | ( | WikiPage | $page | ) |
A page isn't in the index.
WikiPage | $page | not in the index |
Implemented in CirrusSearch\Sanity\AllClustersQueueingRemediator, CirrusSearch\Sanity\BufferedRemediator, CirrusSearch\Sanity\NoopRemediator, CirrusSearch\Sanity\PrintingRemediator, and CirrusSearch\Sanity\QueueingRemediator.
CirrusSearch\Sanity\Remediator::redirectInIndex | ( | WikiPage | $page | ) |
There is a redirect in the index.
WikiPage | $page | the page in the index |
Implemented in CirrusSearch\Sanity\AllClustersQueueingRemediator, CirrusSearch\Sanity\BufferedRemediator, CirrusSearch\Sanity\NoopRemediator, CirrusSearch\Sanity\PrintingRemediator, and CirrusSearch\Sanity\QueueingRemediator.