You are here

SolrMultisiteDocument.php in Search API Solr 8.3

File

src/Plugin/DataType/SolrMultisiteDocument.php
View source
<?php

namespace Drupal\search_api_solr\Plugin\DataType;


/**
 * Defines the "Solr document" data type.
 *
 * Instances of this class wrap Search API Item objects and allow to deal with
 * items based upon the Typed Data API.
 *
 * @DataType(
 *   id = "solr_multisite_document",
 *   label = @Translation("Solr multisite document"),
 *   description = @Translation("Records from a Solr multisite index."),
 *   definition_class = "\Drupal\search_api_solr\TypedData\SolrDocumentDefinition"
 * )
 */
class SolrMultisiteDocument extends SolrDocument {

  /**
   * Field name.
   *
   * @var string
   */
  protected $solrField = 'solr_multisite_field';

  /**
   * Document name.
   *
   * @var string
   */
  protected $solrDocument = 'solr_multisite_document';

}

Classes

Namesort descending Description
SolrMultisiteDocument Defines the "Solr document" data type.