You are here

SolrProcessorInterface.php in Search API Solr 8.3

Same filename and directory in other branches
  1. 8.2 src/SolrProcessorInterface.php
  2. 4.x src/SolrProcessorInterface.php

File

src/SolrProcessorInterface.php
View source
<?php

namespace Drupal\search_api_solr;

use Drupal\search_api\Processor\ProcessorInterface;

/**
 * Provides an interface for Search API Solr processor plugins.
 *
 * Processors can act at many locations in the overall Search API process. These
 * locations are subsumed under the label "Stages" and defined by the STAGE_*
 * constants on this interface. A processor should take care to clearly define
 * for which stages it should run, in addition to implementing the corresponding
 * methods.
 *
 * @see \Drupal\search_api\Annotation\SearchApiProcessor
 * @see \Drupal\search_api\Processor\ProcessorPluginManager
 * @see \Drupal\search_api\Processor\ProcessorPluginBase
 * @see plugin_api
 */
interface SolrProcessorInterface extends ProcessorInterface {

  /**
   * Encodes a streaming expression value.
   *
   * @param string $value
   *   The string to be encoded.
   *
   * @return string|null
   *   The encoded string.
   */
  public function encodeStreamingExpressionValue(string $value);

  /**
   * Decodes a streaming expression value.
   *
   * @param string $value
   *   The string to be decoded.
   *
   * @return string|null
   *   The decoded string.
   */
  public function decodeStreamingExpressionValue(string $value);

}

Interfaces

Namesort descending Description
SolrProcessorInterface Provides an interface for Search API Solr processor plugins.