vendor/ibexa/core/src/contracts/Repository/Values/Content/Search/SearchHit.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * @copyright Copyright (C) Ibexa AS. All rights reserved.
  4.  * @license For full copyright and license information view LICENSE file distributed with this source code.
  5.  */
  6. declare(strict_types=1);
  7. namespace Ibexa\Contracts\Core\Repository\Values\Content\Search;
  8. use Ibexa\Contracts\Core\Repository\Values\ValueObject;
  9. /**
  10.  * This class represents a SearchHit matching the query.
  11.  */
  12. class SearchHit extends ValueObject
  13. {
  14.     /**
  15.      * The value found by the search.
  16.      *
  17.      * @var \Ibexa\Contracts\Core\Repository\Values\ValueObject
  18.      */
  19.     public $valueObject;
  20.     /**
  21.      * The score of this value;.
  22.      *
  23.      * @var float
  24.      */
  25.     public $score;
  26.     /**
  27.      * The index identifier where this value was found.
  28.      *
  29.      * @var string
  30.      */
  31.     public $index;
  32.     /**
  33.      * Language code of the Content translation that matched the query.
  34.      *
  35.      * @since 5.4.5
  36.      *
  37.      * @var string
  38.      */
  39.     public $matchedTranslation;
  40.     /**
  41.      * A representation of the search hit including highlighted terms.
  42.      *
  43.      * @var string
  44.      */
  45.     public $highlight;
  46. }
  47. class_alias(SearchHit::class, 'eZ\Publish\API\Repository\Values\Content\Search\SearchHit');