Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Bolt
Storage
Query
SearchWeighter
setContentType
Bolt\Storage\Query\SearchWeighter::setContentType PHP Метод
Документация по классу SearchWeighter
Показать файл
Открыть проект
setContentType()
публичный
Метод
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