What alternatives to Lucene search, like Solr, could be considered to address the issue?

The issue with Lucene search is that it requires a lot of manual configuration and setup, which can be time-consuming and complex. One alternative to Lucene search is Solr, which is built on top of Lucene and provides a more user-friendly interface for setting up and managing search indexes.

// Example code snippet using Solr for search functionality
$solrClient = new SolrClient(array(
    'hostname' => 'localhost',
    'port' => '8983',
    'path' => '/solr',
));

$query = new SolrQuery();
$query->setQuery('search keywords');

$response = $solrClient->query($query);
$results = $response->getResponse();
foreach ($results->response->docs as $doc) {
    echo $doc->title;
    echo $doc->content;
}