eZ/Publish/Core/Search/Common/IterativelyIndexer.php 1 location
|
@@ 48-54 (lines=7) @@
|
| 45 |
|
$i = 0; |
| 46 |
|
do { |
| 47 |
|
$contentIds = []; |
| 48 |
|
for ($k = 0; $k <= $iterationCount; ++$k) { |
| 49 |
|
if (!$row = $stmt->fetch(PDO::FETCH_ASSOC)) { |
| 50 |
|
break; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
$contentIds[] = $row['id']; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
$this->updateSearchIndex($contentIds, $commit); |
| 57 |
|
|
eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php 1 location
|
@@ 245-251 (lines=7) @@
|
| 242 |
|
{ |
| 243 |
|
do { |
| 244 |
|
$contentIds = []; |
| 245 |
|
for ($i = 0; $i < $iterationCount; ++$i) { |
| 246 |
|
if ($contentId = $stmt->fetch(PDO::FETCH_COLUMN)) { |
| 247 |
|
$contentIds[] = $contentId; |
| 248 |
|
} else { |
| 249 |
|
break; |
| 250 |
|
} |
| 251 |
|
} |
| 252 |
|
|
| 253 |
|
yield $contentIds; |
| 254 |
|
} while (!empty($contentId)); |