Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
|
@ -208,7 +208,7 @@ function search_update_totals() {
|
|||
// Get total count
|
||||
$total = db_query("SELECT SUM(score) FROM {search_index} WHERE word = :word", array(':word' => $word), array('target' => 'replica'))->fetchField();
|
||||
// Apply Zipf's law to equalize the probability distribution.
|
||||
$total = log10(1 + 1/(max(1, $total)));
|
||||
$total = log10(1 + 1 / (max(1, $total)));
|
||||
db_merge('search_total')
|
||||
->key('word', $word)
|
||||
->fields(array('count' => $total))
|
||||
|
|
|
|||
Reference in a new issue