SearchQuery::$normalize

Same name in other branches
  1. 7.x modules/search/search.extender.inc \SearchQuery::normalize
  2. 8.9.x core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::normalize
  3. 10 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::normalize
  4. 11.x core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::normalize

Multiplier to normalize the keyword score.

This value is calculated by the preparation step, and is used as a multiplier of the word scores to make sure they are between 0 and 1.

Type: float

File

core/modules/search/src/SearchQuery.php, line 141

Class

SearchQuery
Search query extender and helper functions.

Namespace

Drupal\search

Code

protected $normalize = 0;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.