The function apachesolr_do_query() introduced by #759638: refactor code to make it possible for multiple modules to run a search breaks custom highlighting in search snippets.
If parameter hl.fl gets modified by an implementation of hook_modify_query() it will be lost because you do not hand over $params as a reference.

This breaks Apache Solr Multilingual.

CommentFileSizeAuthor
highlight.patch1.68 KBmkalkbrenner

Comments

mkalkbrenner’s picture

sorry there's some formatting in the patch. the important part is:

-function apachesolr_do_query($caller, $current_query, $params = array('rows' => 10), $page = 0) {
+function apachesolr_do_query($caller, $current_query, &$params, $page = 0) {
+  if (empty($params)) {
+    array('rows' => 10);
+  }
+
jpmckinney’s picture

Status: Needs review » Closed (duplicate)