Skip to content

Commit 69b00ed

Browse files
johannessteudaniellienert
authored andcommitted
TASK: Add a new executeUncached() method to ElasticSearchQueryBuilder
This change introduces a new method `executeUncahced` to the ElasticSerachQueryBuilder. This method will actually execute the ElasticSearchQuery but the result will be uncached.
1 parent d7f94df commit 69b00ed

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,20 @@ public function execute()
615615
return $result;
616616
}
617617

618+
/**
619+
* Get a uncached query result object for lazy execution of the query
620+
*
621+
* @return \Traversable<\Neos\Flow\Persistence\QueryResultInterface>
622+
* @api
623+
*/
624+
public function executeUncached()
625+
{
626+
$elasticSearchQuery = new ElasticSearchQuery($this);
627+
$result = $elasticSearchQuery->execute(false);
628+
629+
return $result;
630+
}
631+
618632
/**
619633
* Return the total number of hits for the query.
620634
*

0 commit comments

Comments
 (0)