mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
implement highlight feature
This commit is contained in:
parent
8651eb4d97
commit
efc528c241
2 changed files with 52 additions and 8 deletions
|
|
@ -47,11 +47,27 @@
|
|||
{
|
||||
"field_weights":
|
||||
{
|
||||
"url": 100,
|
||||
"title": 200,
|
||||
"description": 300,
|
||||
"keywords": 400,
|
||||
"body": 500
|
||||
"url":100,
|
||||
"title":200,
|
||||
"description":300,
|
||||
"keywords":400,
|
||||
"body":500
|
||||
}
|
||||
},
|
||||
"highlight":
|
||||
{
|
||||
"fields":
|
||||
[
|
||||
"url",
|
||||
"title",
|
||||
"description",
|
||||
"keywords",
|
||||
"body"
|
||||
],
|
||||
"options":
|
||||
{
|
||||
"around":5,
|
||||
"limit":140
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue