public function SolrFieldDefinition::isFilterable in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::isFilterable()
- 4.x src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::isFilterable()
Determine whether a field is suitable for filtering.
Fields suitable for filtering must be non-fulltext. A case-sensitive is used. When searching on this type of field, only full, exact values will match.
Return value
bool Whether the field might be suitable for filtering.
Overrides SolrFieldDefinitionInterface::isFilterable
File
- src/
TypedData/ SolrFieldDefinition.php, line 219
Class
- SolrFieldDefinition
- Defines a class for Solr field definitions.
Namespace
Drupal\search_api_solr\TypedDataCode
public function isFilterable() {
return $this
->isIndexed() && !$this
->isTokenized();
}