Commit 5ad0d481 authored by Thomas Seidl's avatar Thomas Seidl
Browse files

Issue #3363208 by drunken monkey: Fixed implicit conversion from float to int in database backend.

parent 713d11e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Search API 1.x, dev (xxxx-xx-xx):
---------------------------------
- #3363208 by drunken monkey: Fixed implicit conversion from float to int in
  database backend.
- #3315269 by drunken monkey, GuyPaddock: Fixed illogical error handling code in
  "Content access" processor.
- #3347610 by drunken monkey, itaran: Fixed error in HTML filter with very long
+2 −2
Original line number Diff line number Diff line
@@ -1322,7 +1322,7 @@ class Database extends BackendPluginBase implements AutocompleteBackendInterface
   *
   * @param \Drupal\search_api\Plugin\search_api\data_type\value\TextTokenInterface[] $values
   *   An ordered array of text tokens.
   * @param int $item_boost
   * @param float $item_boost
   *   The score boost for this index item.
   * @param string &$denormalized_value
   *   Outputs a truncated string representing these text tokens.
@@ -1331,7 +1331,7 @@ class Database extends BackendPluginBase implements AutocompleteBackendInterface
   *   Extracted tokens, keyed by the indexed token/bigram and represented by
   *   associative arrays with keys "value" (the token/bigram) and "score".
   */
  protected function convertValuesToScoredTokens(array $values, int $item_boost, string &$denormalized_value): array {
  protected function convertValuesToScoredTokens(array $values, float $item_boost, string &$denormalized_value): array {
    // Build a deduplicated list of single-word tokens.
    $unique_tokens = [];
    $pos_in_text = 0;