generated from ztimson/template
Fixed search summary text
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/zim-utils",
|
"name": "@ztimson/zim-utils",
|
||||||
"version": "0.4.4",
|
"version": "0.4.5",
|
||||||
"description": "Native, dependency-light ZIM archive reader/searcher and Kiwix catalog downloader for Node.js",
|
"description": "Native, dependency-light ZIM archive reader/searcher and Kiwix catalog downloader for Node.js",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ export function rerank(hits, termList) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
...hit,
|
...hit,
|
||||||
|
summary: hit.summary?._text,
|
||||||
finalScore,
|
finalScore,
|
||||||
ranking: {
|
ranking: {
|
||||||
rrf: hit.rrf,
|
rrf: hit.rrf,
|
||||||
|
|||||||
Reference in New Issue
Block a user