isSearchable() public method

Is the field searchable.
public isSearchable ( ) : boolean
return boolean
示例#1
0
 /**
  * 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();
 }