public function SolrFieldType::setUnstemmedFieldTypeAsJson in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::setUnstemmedFieldTypeAsJson()
Sets the Solr Unstemmed Field Type definition as JSON.
Decodes the Solr Field Type definition encoded as JSON and stores an nested associative array internally. This method in useful to import a field type from an existing Solr server.
Parameters
string $unstemmed_field_type: The Solr Unstemmed Field Type definition as JSON, might be empty if it doesn't exist.
Return value
self Untemmed field type as json.
Overrides SolrFieldTypeInterface::setUnstemmedFieldTypeAsJson
File
- src/
Entity/ SolrFieldType.php, line 353
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\search_api_solr\EntityCode
public function setUnstemmedFieldTypeAsJson($unstemmed_field_type) {
$this->unstemmed_field_type = Json::decode($unstemmed_field_type);
return $this;
}