You are here

public function SolrFieldDefinition::isFulltextSearchable 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::isFulltextSearchable()
  2. 8.2 src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::isFulltextSearchable()

Determine whether a field is suitable for fulltext search.

Some fields are tokenized for sort and contain a single, all lowercase value. These fields are not suitable for fulltext search, but there is no general way to tell them apart from fields that are tokenized into multiple terms.

Return value

bool Whether the field might be suitable for fulltext search.

Overrides SolrFieldDefinitionInterface::isFulltextSearchable

File

src/TypedData/SolrFieldDefinition.php, line 211

Class

SolrFieldDefinition
Defines a class for Solr field definitions.

Namespace

Drupal\search_api_solr\TypedData

Code

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