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
yii
elasticsearch
Query
highlight
yii\elasticsearch\Query::highlight PHP Method
Query Class Documentation
Show file
Open project: yiisoft/yii2-elasticsearch
highlight()
public
method
Sets a highlight parameters to retrieve from the documents.
See also:
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html
public
highlight
(
array
$highlight
)
$highlight
array
array of parameters to highlight results.
public function highlight($highlight) { $this->highlight = $highlight; return $this; }
Query
addAgg
addAggregate
addAggregation
addOptions
addSuggester
all
batch
column
count
createCommand
delete
each
exists
fields
filter
from
highlight
init
minScore
one
options
populate
postFilter
query
scalar
search
source
stats
timeout