mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-26 19:07:41 +03:00
Added a formal object type to carry across vector search results. Added permission application and entity combining with vector search results. Also updated namespace from vectors to queries.
18 lines
290 B
PHP
18 lines
290 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace BookStack\Search\Queries;
|
|
|
|
use BookStack\Entities\Models\Entity;
|
|
|
|
readonly class VectorSearchResult
|
|
{
|
|
public function __construct(
|
|
public Entity $entity,
|
|
public float $distance,
|
|
public string $matchText
|
|
) {
|
|
}
|
|
}
|