implement highlight feature

This commit is contained in:
yggverse 2024-03-21 23:49:18 +02:00
parent 8651eb4d97
commit efc528c241
2 changed files with 52 additions and 8 deletions

View file

@ -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
}
}
},