You are here

public function StreamingExpressionBuilder::_timestamp_value in Search API Solr 4.x

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

Returns the timestamp expression for the current request.

Return value

string The timestamp expression.

File

src/Utility/StreamingExpressionBuilder.php, line 706

Class

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

Namespace

Drupal\search_api_solr\Utility

Code

public function _timestamp_value() {
  return 'val(' . $this->requestTime . ') as timestamp';
}