public function SearchApiDenormalizedEntityField::getDenormalizationFieldLimit in Search API Grouping 7.2
Returns the permutation limit of a field.
Parameters
string $field: The field to get the limit for.
Return value
int The number of permutations to generate from this field. 0 means no limit.
File
- includes/
processor_denormalize_field.inc, line 110 - Processor for configuring the denormalization per index.
Class
- SearchApiDenormalizedEntityField
- Processor to configure and handle the denormalization per index.
Code
public function getDenormalizationFieldLimit($field) {
if (!empty($this->options['permutation_limit'][$field]) && is_numeric($this->options['permutation_limit'][$field])) {
return (int) $this->options['permutation_limit'][$field];
}
return 0;
}