๐ฆ๐บAustralia bradtreloar
The NullPointerException is thrown because Solr is trying to get the unique key from the list of fields returned by the query.
The default uniqueKey
field is id
. Adding it to the field list fixes the error.
// Add the documents ids to be elevated to the search query.
if (isset($query_item_ids['elevate']) && is_array($query_item_ids['elevate'])) {
$query->setOption('solr_param_elevateIds', implode(',', $query_item_ids['elevate']));
$query->setOption('solr_param_fl', 'id,[elevated]');
}
๐ฆ๐บAustralia bradtreloar
bradtreloar โ made their first commit to this issueโs fork.