You are here

public function ResultSetInterface::preLoadResultItems in Search API 8

Loads all "original objects" of the result items that have not been loaded.

This can be used in case original objects are needed for all results, to make sure they are multi-loaded, avoiding the performance penalty associated with loading them individually.

1 method overrides ResultSetInterface::preLoadResultItems()
ResultSet::preLoadResultItems in src/Query/ResultSet.php
Loads all "original objects" of the result items that have not been loaded.

File

src/Query/ResultSetInterface.php, line 79

Class

ResultSetInterface
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function preLoadResultItems();