2015-03-12 11:20:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FOS\ElasticaBundle\Transformer;
|
|
|
|
|
|
|
|
/**
|
2015-03-12 12:21:53 +01:00
|
|
|
* Indicates that the model should have elastica highlights injected.
|
2015-03-12 11:20:00 +01:00
|
|
|
*/
|
|
|
|
interface HighlightableModelInterface
|
|
|
|
{
|
2015-03-12 12:21:53 +01:00
|
|
|
/**
|
|
|
|
* Returns a unique identifier for the model.
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getId();
|
|
|
|
|
2015-03-12 11:20:00 +01:00
|
|
|
/**
|
|
|
|
* Set ElasticSearch highlight data.
|
|
|
|
*
|
|
|
|
* @param array $highlights array of highlight strings
|
|
|
|
*/
|
|
|
|
public function setElasticHighlights(array $highlights);
|
|
|
|
}
|