Skip to content

Commit 9af96be

Browse files
committed
[FEATURE] add accessibleCount getter on QueryResult
1 parent 239d03d commit 9af96be

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Eel/ElasticSearchQueryResult.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ public function count() {
155155
return $this->count;
156156
}
157157

158+
/**
159+
* @return integer the current number of results which can be iterated upon
160+
* @api
161+
*/
162+
public function getAccessibleCount() {
163+
$this->initialize();
164+
return count($this->results);
165+
}
166+
158167
/**
159168
* Returns the ElasticSearch "hit" (e.g. the raw content being transferred back from ElasticSearch)
160169
* for the given node.

0 commit comments

Comments
 (0)