$index = \Drupal\search_api\Entity\Index::load('solr_index');
$query = $index->query();
$parse_mode = \Drupal::service('plugin.manager.search_api.parse_mode')->createInstance('direct');
$query->setParseMode($parse_mode);
$query->keys('keywords to search');
$results = $query->execute();
$items = $results->getResultItems();PHP Script
<?php
function aws(string $command) : array|false {
$aws_command = 'aws --no-cli-pager --no-paginate --output json ' . $command;
$output = [];
$result_code = NULL;
if (exec($aws_command, $output, $result_code)) {$ cat /tmp/sendmail.txt
From: From-Name <email>
To: To-Name <email>
Subject: Test
Date: Mon, 03 Feb 2026 18:42:00 +0000
Test Content
OlderNewer