boolean add_results(
string
$col, string
$score, integer
$id
)
|
|
Create searchable items database
Parameters:
|
string |
$col: |
- column of $this->table |
|
string |
$score: |
- priority of column (higher for titles, lower for content) |
|
integer |
$id: |
- id of item |
API Tags:
boolean del_results(
[$id
$id = 0]
)
|
|
Delete search database or ".T_SEARCH." items
Parameters:
|
$id |
$id: |
- items to delete (0 = all items) |
API Tags:
| Return: | - result of deleting database |
Create search index for all items
boolean make_tmp(
string
$string
)
|
|
search for string and save string to temporary results
Parameters:
string replace(
string
$text
)
|
|
Standartize text, for example "S*O*M*E" to "some"
Parameters:
|
string |
$text: |
- text for standartize |
array search_query(
string
$query
)
|
|
search for query, for example "word word word"
Parameters:
API Tags:
boolean _add(
string
$goods_id, string
$value, integer
$score
)
|
|
Add word to search database
Parameters:
|
string |
$goods_id: |
|
|
string |
$value: |
|
|
integer |
$score: |
|
boolean _check_tmp(
string
$string
)
|
|
Check for temporary search results
Parameters:
boolean _clear_tmp(
[integer
$time = 1800]
)
|
|
Clear temporary results
Parameters:
|
integer |
$time: |
- Time in seconds for hold cache |
boolean _search_tmp(
string
$string
)
|
|
search for one word
Parameters: