You are here

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

Determines whether this field has the "termPositions" option set.

Return value

bool TRUE if the field has the "termPositions" option set, FALSE otherwise.

Overrides SolrFieldDefinitionInterface::isStorePositionWithTermVector

File

src/TypedData/SolrFieldDefinition.php, line 138

Class

SolrFieldDefinition
Defines a class for Solr field definitions.

Namespace

Drupal\search_api_solr\TypedData

Code

public function isStorePositionWithTermVector() {
  $this
    ->getSchema();
  return isset($this->schema['p']);
}