You are here

public function SolrFieldDefinition::isFilterable in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::isFilterable()
  2. 8.2 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\TypedData

Code

public function isFilterable() {
  return $this
    ->isIndexed() && !$this
    ->isTokenized();
}