SearchQuery::NO_POSITIVE_KEYWORDS

Same name in other branches
  1. 8.9.x core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::NO_POSITIVE_KEYWORDS
  2. 10 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::NO_POSITIVE_KEYWORDS
  3. 11.x core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::NO_POSITIVE_KEYWORDS

Indicates no positive keywords were in the search expression.

Positive keywords are words that are searched for, as opposed to negative keywords, which are words that are excluded. To count as a keyword, a word must be at least \Drupal::config('search.settings')->get('index.minimum_word_size') characters.

See also

SearchQuery::getStatus()

File

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

Class

SearchQuery
Search query extender and helper functions.

Namespace

Drupal\search

Code

const NO_POSITIVE_KEYWORDS = 1;

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