Attempt to fix union iterator, a=chris
Attempt to fix union iterator, a=chris
diff --git a/src/library/index_bundle_iterators/UnionIterator.php b/src/library/index_bundle_iterators/UnionIterator.php
index 2e2dcb41b..2aac08cce 100644
--- a/src/library/index_bundle_iterators/UnionIterator.php
+++ b/src/library/index_bundle_iterators/UnionIterator.php
@@ -164,41 +164,6 @@ class UnionIterator extends IndexBundleIterator
$this->count_block = count($pages);
return $pages;
}
- /**
- * Gets the summaries associated with the keys provided the keys
- * can be found in the current block of docs returned by this iterator
- * @param array $keys keys to try to find in the current block of returned
- * results
- * @return array doc summaries that match provided keys
- */
- public function getCurrentDocsForKeys($keys = null)
- {
- if ($this->current_block_fresh == false) {
- $result = $this->currentDocsWithWord();
- if (!is_array($result)) {
- return $result;
- }
- }
- if (!is_array($this->pages)) {
- return $this->pages;
- }
- if ($keys == null) {
- $keys = array_keys($this->pages);
- }
- $out_pages = [];
- foreach ($keys as $doc_key) {
- if (!isset($this->pages[$doc_key]["ITERATOR"])) {
- continue;
- } else {
- $tmp = $this->index_bundle_iterators[
- $this->pages[
- $doc_key]["ITERATOR"]]->getCurrentDocsForKeys(
- [$doc_key]);
- $out_pages[$doc_key] = $tmp[$doc_key] ?? null;
- }
- }
- return $out_pages;
- }
/**
* Forwards the iterator one group of docs
* @param array $gen_doc_offset a generation, doc_offset pair. If set,