Lines Matching refs:term
565 * @param string $term
568 function ft_snippet_re_preprocess($term) argument
571 if (Asian::isAsianWords($term)) return $term;
584 if (str_starts_with($term, '\\*')) {
585 $term = substr($term, 2);
587 $term = $BL . $term;
590 if (str_ends_with($term, '\\*')) {
591 $term = substr($term, 0, -2);
593 $term .= $BR;
596 if ($term == $BL || $term == $BR || $term == $BL . $BR) $term = '';
597 return $term;
747 foreach ($terms as $term) {
749 if (preg_match('/^(-?)"(.+)"$/u', $term, $matches)) {
755 $term = str_replace('"', ' ', $term);
758 $term = str_replace(')', ' ) ', $term);
759 $term = str_replace('(', ' ( ', $term);
760 $term = str_replace('- (', ' -(', $term);
763 $term = str_replace('|', ' or ', $term);
767 $term = preg_replace('/[ \x{3000}]+/u', ' ', $term);
768 $term = trim($term);
769 if ($term === '') continue;
771 $tokens = explode(' ', $term);
937 * @param string $term
942 function ft_termParser($Indexer, $term, $consider_asian = true, $phrase_mode = false) argument
947 $words = Asian::splitAsianWords($term);
953 $term_noparen = str_replace(['(', ')'], ' ', $term);
959 } elseif ($words[0] === $term) {
962 $term_encoded = str_replace(['(', ')'], ['OP', 'CP'], $term);