๐Ÿ‡ฆ๐Ÿ‡บAustralia @bradtreloar

Account created on 27 June 2015, over 9 years ago
#

Recent comments

๐Ÿ‡ฆ๐Ÿ‡บ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.

Production build 0.71.5 2024