Change record status: 
Project: 
Introduced in branch: 
9.1.x
Introduced in version: 
9.1.0
Description: 

Search text process has been moved to a service.

Before After
search_index_split() \Drupal::service('search.text_processor')->tokenize()
search_simplify() \Drupal::service('search.text_processor')->filterCharacters()
search_expand_cjk() Moved to an internal method.
search_invoke_preprocess() Moved to an internal method.
Impacts: 
Module developers

Comments

ekes’s picture

\Drupal::service('search.text_processor')->filterCharacters()

should be

\Drupal::service('search.text_processor')->analyse()

Example in the search module from the commit https://git.drupalcode.org/project/drupal/-/commit/640ea36#8c0a57e1ec75f...