vBulletin v6.0.4

vB_Search_Core
in package
Uses vB_Trait_NoSerialize

AbstractYes

Table of Contents

Constants

OP_COMPLEX  = 'complex'
OP_EQ  = 'eq'
OP_GTE  = 'gte'
OP_LTE  = 'lte'
OP_NEQ  = 'neq'
TYPE_COMMON  = 'common'

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
attributeChanged()  : mixed
this function should be called whenever an attribute changes in the node table
cacheResults()  : mixed
Caches the results
clean()  : mixed
delete()  : mixed
emptyIndex()  : mixed
floodCheck()  : mixed
getCache()  : mixed
getFromCache()  : mixed
getResults()  : mixed
getTwoPassResults()  : mixed
index()  : mixed
Index a node
indexBatch()  : mixed
Index a list of nodes
indexText()  : mixed
Index a node
indexTextBatch()  : mixed
Index a batch of nodes
indexTrending()  : mixed
instance()  : mixed
normalizeIgnoreListForSearchHash()  : mixed
purgeCacheForUser()  : mixed
reIndexAll()  : mixed
removeNodeFromResult()  : mixed
saveSecondPassResults()  : mixed

Constants

OP_COMPLEX

public mixed OP_COMPLEX = 'complex'

OP_EQ

public mixed OP_EQ = 'eq'

OP_GTE

public mixed OP_GTE = 'gte'

OP_LTE

public mixed OP_LTE = 'lte'

OP_NEQ

public mixed OP_NEQ = 'neq'

TYPE_COMMON

public mixed TYPE_COMMON = 'common'

Methods

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $serialized) : void
Parameters
$serialized : array<string|int, mixed>

attributeChanged()

this function should be called whenever an attribute changes in the node table

public attributeChanged(int|array<string|int, mixed> $nodeid) : mixed
Parameters
$nodeid : int|array<string|int, mixed>

cacheResults()

Caches the results

public cacheResults(array<string|int, mixed> $nodeIds, vB_Search_Criteria $criteria[, int $searchtime = 0 ][, mixed $searchType = 0 ]) : mixed
Parameters
$nodeIds : array<string|int, mixed>

Nodeids resulting from a successful search

$criteria : vB_Search_Criteria

Search criteria object

$searchtime : int = 0

Elapsed search time in seconds

$searchType : mixed = 0
Return values
mixed

array of strings and integers- see details below.

clean()

public clean() : mixed

delete()

public abstract delete(mixed $nodeid[, mixed $node = false ]) : mixed
Parameters
$nodeid : mixed
$node : mixed = false

emptyIndex()

public emptyIndex() : mixed

floodCheck()

public floodCheck() : mixed

getCache()

public getCache(mixed $resultId) : mixed
Parameters
$resultId : mixed

getFromCache()

public getFromCache(vB_Search_Criteria $criteria, mixed $search_json) : mixed
Parameters
$criteria : vB_Search_Criteria
$search_json : mixed

getResults()

public abstract getResults(vB_Search_Criteria $criteria) : mixed
Parameters
$criteria : vB_Search_Criteria

getTwoPassResults()

public getTwoPassResults(vB_Search_Criteria $criteria) : mixed
Parameters
$criteria : vB_Search_Criteria

index()

Index a node

public index(int|array<string|int, mixed> $node_id[, bool $propagate = true ]) : mixed
Parameters
$node_id : int|array<string|int, mixed>

-- id or node record to index.

$propagate : bool = true

flag to propagate the indexing to the nodes parents

indexBatch()

Index a list of nodes

public indexBatch(array<string|int, mixed> $nodes[, bool $forceupdate = false ]) : mixed

Note that this function does not handle propogation for other affected nodes. It assumes that those nodes are either currenctly correct or will be handled as part of a larger reindex operation.

Parameters
$nodes : array<string|int, mixed>

-- array of node records indexed by nodeid

$forceupdate : bool = false

-- if true we skip the CRC check on the node and update the word index anyway.

indexText()

Index a node

public abstract indexText(array<string|int, mixed> $node, string $title, string $text[, bool $forceupdate = false ]) : mixed
Parameters
$node : array<string|int, mixed>
$title : string

-- title text to index

$text : string

-- content text to index

$forceupdate : bool = false

-- if true we skip the CRC check on the node and update the word index anyway.

indexTextBatch()

Index a batch of nodes

public abstract indexTextBatch(array<string|int, mixed> $nodes, array<string|int, mixed> $titles, array<string|int, mixed> $texts[, bool $forceupdate = false ]) : mixed
Parameters
$nodes : array<string|int, mixed>

-- array of node arrays (indexed as $nodedid => $node)

$titles : array<string|int, mixed>

-- array of strings of the title text to index (indexed as $nodedid => $title)

$texts : array<string|int, mixed>

-- array of strings of thecontent text to index (indexed as $nodedid => $texts)

$forceupdate : bool = false

-- if true we skip the CRC check on the node and update the word index anyway.

indexTrending()

public abstract indexTrending(mixed $lookback, mixed $minimum) : mixed
Parameters
$lookback : mixed
$minimum : mixed

instance()

public static instance() : mixed

normalizeIgnoreListForSearchHash()

public static normalizeIgnoreListForSearchHash(mixed $ignorelist) : mixed
Parameters
$ignorelist : mixed

purgeCacheForUser()

public purgeCacheForUser(mixed $userid[, mixed $from = false ]) : mixed
Parameters
$userid : mixed
$from : mixed = false

reIndexAll()

public abstract reIndexAll() : mixed

removeNodeFromResult()

public removeNodeFromResult(mixed $nodeid, mixed $result, mixed $perpage, mixed $pagenumber, mixed $getStarterInfo) : mixed
Parameters
$nodeid : mixed
$result : mixed
$perpage : mixed
$pagenumber : mixed
$getStarterInfo : mixed

saveSecondPassResults()

public static saveSecondPassResults(mixed $nodeids, mixed $cacheKey[, mixed $parentid = false ]) : mixed
Parameters
$nodeids : mixed
$cacheKey : mixed
$parentid : mixed = false

        
On this page

Search results