PHP Interface Owl\Repositories\ItemFtsRepositoryInterface

Mostra file Open project: owl/owl

Public Methods

Method Description
create ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model Create a item fts.
deleteItemFts ( $item_id ) : boolean Delete a item fts.
match ( string $str, integer $limit = 10, integer $offset ) : array match
matchCount ( string $str ) : array matchCount
toNgram ( string $title, text $body ) : string Convert String into N-Gramed string.

Method Details

create() public method

Create a item fts.
public create ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model
$item_id integer
$title string
$body text
return Illuminate\Database\Eloquent\Model

deleteItemFts() public method

Delete a item fts.
public deleteItemFts ( $item_id ) : boolean
$item_id int
return boolean

match() public method

match
public match ( string $str, integer $limit = 10, integer $offset ) : array
$str string
$limit integer
$offset integer
return array

matchCount() public method

matchCount
public matchCount ( string $str ) : array
$str string
return array

toNgram() public method

Convert String into N-Gramed string.
public toNgram ( string $title, text $body ) : string
$title string
$body text
return string