Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Bolt
Storage
Query
SearchWeighter
setContentType
Bolt\Storage\Query\SearchWeighter::setContentType PHP Method
SearchWeighter Class Documentation
Show file
Open project: bolt/bolt
setContentType()
public
method
Sets the ContentType that we are weighting, that is, what type the results array is. That allows us to map against the configuration to see which fields to scan for relevant text.
public
setContentType
(
string
$type
)
$type
string
public function setContentType($type) { $this->contentType = $type; }
SearchWeighter
__construct
buildResultIndex
getContentFields
getResultScore
setContentType
setResults
setSearchWords
weight