public function SolrFieldType::getUnstemmedFieldTypeAsXml in Search API Solr 8.3
Same name and namespace in other branches
- 4.x src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::getUnstemmedFieldTypeAsXml()
Gets the Solr Unstemmed Field Type definition as XML fragment.
The XML format is used as part of classic Solr schema.
Parameters
bool $add_comment: Wether to add a comment to the XML or not to explain the purpose of this Solr Field Type.
Return value
string The Solr Unstemmed Field Type definition as XML, might be empty if it doesn't exist.
Overrides SolrFieldTypeInterface::getUnstemmedFieldTypeAsXml
File
- src/
Entity/ SolrFieldType.php, line 385
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\search_api_solr\EntityCode
public function getUnstemmedFieldTypeAsXml($add_comment = TRUE) {
return $this->unstemmed_field_type ? $this
->getSubFieldTypeAsXml($this->unstemmed_field_type, ' unstemmed') : '';
}