Property | Type | Description | |
---|---|---|---|
$itemFtsRepo | |||
$tagFtsRepo |
Method | Description | |
---|---|---|
__construct ( Owl\Repositories\ItemFtsRepositoryInterface $itemFtsRepo, Owl\Repositories\TagFtsRepositoryInterface $tagFtsRepo ) | ||
itemCreate ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model | Create a item fts. | |
itemDelete ( $item_id ) : boolean | Delete a item fts. | |
itemMatch ( string $str, integer $limit = 10, integer $offset ) : array | item match | |
itemMatchCount ( string $str ) : array | item matchCount | |
tagFirstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model | get a tagFts data or Create a tagFts data by ID and Words. | |
tagMatch ( $str, integer $limit = 10, integer $offset ) : array | get tags data by string for FullTextSearch. |
public __construct ( Owl\Repositories\ItemFtsRepositoryInterface $itemFtsRepo, Owl\Repositories\TagFtsRepositoryInterface $tagFtsRepo ) | ||
$itemFtsRepo | Owl\Repositories\ItemFtsRepositoryInterface | |
$tagFtsRepo | Owl\Repositories\TagFtsRepositoryInterface |
public itemCreate ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model | ||
$item_id | integer | |
$title | string | |
$body | text | |
return | Illuminate\Database\Eloquent\Model |
public itemDelete ( $item_id ) : boolean | ||
$item_id | int | |
return | boolean |
public itemMatchCount ( string $str ) : array | ||
$str | string | |
return | array |
public tagFirstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model | ||
$tag_id | integer | |
$words | string | |
return | Illuminate\Database\Eloquent\Model |