Skip to content

Commit 8678b9a

Browse files
committed
Show stats and errors for the selected site only
Change-Id: I9cdded5d7d302c7a88fe7e14973d917bd0ec671f
1 parent 6957f5b commit 8678b9a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Classes/Backend/SolrModule/IndexQueueModuleController.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ protected function getIndexQueueInitializationSelector() {
176176

177177
/**
178178
* Extracts the number of pending, indexed and erroneous items from the
179-
* index queue.
179+
* Index Queue.
180+
*
180181
* @return array
181182
*/
182183
protected function getIndexQueueStats() {
@@ -185,7 +186,7 @@ protected function getIndexQueueStats() {
185186
. '(errors not like "") as erroneous,'
186187
. 'COUNT(*) as count',
187188
'tx_solr_indexqueue_item',
188-
'',
189+
'root = ' . $this->site->getRootPageId() ,
189190
'pending, erroneous'
190191
);
191192

@@ -204,13 +205,15 @@ protected function getIndexQueueStats() {
204205
}
205206

206207
/**
207-
* @return array Index queue with an associated error
208+
* Finds indexing errors for the current site
209+
*
210+
* @return array Error items for the current site's Index Queue
208211
*/
209212
protected function getIndexQueueErrors() {
210213
return $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
211214
'uid, item_type, item_uid, errors',
212215
'tx_solr_indexqueue_item',
213-
'errors NOT LIKE ""'
216+
'errors NOT LIKE "" AND root = ' . $this->site->getRootPageId()
214217
);
215218
}
216219
}

0 commit comments

Comments
 (0)