/** * Indicates if a field is used in fuzzy search. * * @SuppressWarnings(PHPMD.UnusedPrivateMethod) * * @param FieldInterface $field Mapping field. * * @return boolean */ private function isFuzzyFieldCallback(FieldInterface $field) { return $field->isSearchable() && $field->isUsedInSpellcheck(); }