We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bd60b commit e3d9c87Copy full SHA for e3d9c87
search/engine/solr/classes/engine.php
@@ -433,7 +433,10 @@ public function add_fields($query) {
433
$query->addField($key);
434
if ($dismax && !empty($field['mainquery'])) {
435
// Add fields the main query should be run against.
436
- $query->addQueryField($key);
+ // Due to a regression in the PECL solr extension, https://bugs.php.net/bug.php?id=72740,
437
+ // a boost value is required, even if it is optional; to avoid boosting one among other fields,
438
+ // the explicit boost value will be the default one, for every field.
439
+ $query->addQueryField($key, 1);
440
}
441
442
0 commit comments