public function SolrFieldDefinition::isFulltextSearchable in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 src/TypedData/SolrFieldDefinition.php \Drupal\search_api_solr\TypedData\SolrFieldDefinition::isFulltextSearchable()
- 4.x 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\TypedDataCode
public function isFulltextSearchable() {
return $this
->isIndexed() && $this
->isTokenized();
}