Lines Matching refs:term
55 * @param string $term the search term, may include * wildcards at start/end
58 public function addTerm(string $term): Term argument
60 $term = new Term($term);
63 $term->caseInsensitive();
67 $this->allTerms[$term->getOriginal()] = $term;
71 if ($term->getWildcard()) {
77 $max = $term->getLength();
80 for ($i = $term->getLength(); $i <= $max; $i++) {
81 $this->groupedTerms[$i][] = $term;
85 $this->groupedTerms[0][] = $term;
88 return $term;
114 foreach ($terms as $term) {
115 if ($term->matches($tokenValue)) {
116 $tokenMatches[$tokenId][] = ['term' => $term, 'token' => $tokenValue];