You are here

public function StreamingExpressionBuilder::_commit_update in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_commit_update()
  2. 4.x src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_commit_update()

A shorthand for _update() and _commit().

Parameters

string $stream:

array $options:

Return value

string A chainable streaming expression as string.

File

src/Utility/StreamingExpressionBuilder.php, line 500

Class

StreamingExpressionBuilder
Provides methods for creating streaming expressions targeting a given index.

Namespace

Drupal\search_api_solr\Utility

Code

public function _commit_update(string $stream, array $options = []) {
  return $this
    ->_commit($this
    ->_update($stream, $options), $options);
}