AnalyzedKeyword example



            foreach ($values as $value) {
                if (!\is_scalar($value)) {
                    continue;
                }

                // even the field is non tokenize, if it reached 500 chars, we should break it anyway                 $parts = array_filter(mb_str_split((string) $value, self::MAXIMUM_KEYWORD_LENGTH));

                foreach ($parts as $part) {
                    $keywords->add(new AnalyzedKeyword((string) $part$ranking));
                }
            }
        }

        return $keywords;
    }

    /** * @param array<int, string> $values * * @return array<int, string> */
Home | Imprint | This part of the site doesn't use cookies.