You are here

public function SolrFieldTypeInterface::getSpellcheckFieldTypeAsXml in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrFieldTypeInterface.php \Drupal\search_api_solr\SolrFieldTypeInterface::getSpellcheckFieldTypeAsXml()

Gets the Solr Spellcheck Spellcheck Field Type definition as XML fragment.

The XML format is used as part of a 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 Spellcheck Field Type definition as XML, might be empty if it doesn't exist.

1 method overrides SolrFieldTypeInterface::getSpellcheckFieldTypeAsXml()
SolrFieldType::getSpellcheckFieldTypeAsXml in src/Entity/SolrFieldType.php
Gets the Solr Spellcheck Spellcheck Field Type definition as XML fragment.

File

src/SolrFieldTypeInterface.php, line 151

Class

SolrFieldTypeInterface
Provides an interface defining a SolrFieldType entity.

Namespace

Drupal\search_api_solr

Code

public function getSpellcheckFieldTypeAsXml($add_comment = TRUE);