@trigger_error('search_simplify() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::analyze() instead. See https://www.drupal.org/node/3078162',E_USER_DEPRECATED);
@@ -224,8 +173,14 @@ function search_simplify($text, $langcode = NULL) {
*
* @return string
* Tokenized text, starting and ending with a space character.
*
* @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use a
* custom implementation of SearchTextProcessorInterface instead.
*
* @see https://www.drupal.org/node/3078162
*/
functionsearch_expand_cjk($matches){
@trigger_error('search_expand_cjk() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use a custom implementation of SearchTextProcessorInterface instead. instead. See https://www.drupal.org/node/3078162',E_USER_DEPRECATED);
* Helper function for array_walk in search_index_split.
*/
function_search_index_truncate(&$text){
// Use a static array to avoid re-truncating text we've done before.
// The same words may often be passed in during excerpt generation.
static$truncated=[];
if(isset($truncated[$text])){
$text=$truncated[$text];
return;
}
// If we didn't find it in the static array, perform the operation.
$original=$text;
if(is_numeric($text)){
$text=ltrim($text,'0');
}
$text=Unicode::truncate($text,50);
// Save it for the next time.
$truncated[$original]=$text;
@trigger_error('search_index_split() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::process() instead. See https://www.drupal.org/node/3078162',E_USER_DEPRECATED);
@trigger_error('search_invoke_preprocess() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use a custom implementation of SearchTextProcessorInterface instead. See https://www.drupal.org/node/3078162',E_USER_DEPRECATED);
@trigger_error('Calling '.__METHOD__.' without $text_processor argument is deprecated in drupal:9.1.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3078162',E_USER_DEPRECATED);