2012-07-16 17:49:28 +02:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:44:06 +01:00
|
|
|
namespace FOS\ElasticaBundle\Transformer;
|
2012-07-16 17:49:28 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Maps Elastica documents with model objects
|
|
|
|
*/
|
|
|
|
interface HighlightableModelInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Set ElasticSearch highlight data.
|
|
|
|
*
|
2013-03-02 12:23:44 +01:00
|
|
|
* @param array $highlights array of highlight strings
|
2012-07-16 17:49:28 +02:00
|
|
|
*/
|
|
|
|
public function setElasticHighlights(array $highlights);
|
|
|
|
}
|