diff --git a/modules/search_api_db/src/Plugin/search_api/backend/Database.php b/src/Plugin/search_api/backend/Database.php --- a/modules/search_api_db/src/Plugin/search_api/backend/Database.php +++ b/modules/search_api_db/src/Plugin/search_api/backend/Database.php @@ -1362,6 +1362,7 @@ // Take care that the score doesn't exceed the maximum value for // the database column (2^32-1). $score = min((int) $score, 4294967295); + $score = max((int) $score, 0); $text_inserts[] = [ 'item_id' => $item_id, 'field_name' => $field_name,