fix: improve search relevance ranking

This commit is contained in:
2026-08-18 08:51:22 +03:00
parent 575f4fa3af
commit d701f714e1
16 changed files with 22 additions and 20 deletions

View File

@@ -55,6 +55,7 @@ def search(base_url: str, index: str, item: dict, top_k: int) -> list[str]:
"multi_match": {
"query": item["query"],
"fields": [f"document_name_{language}", f"text_{language}"],
"type": "cross_fields",
}
},
}

View File

@@ -15,7 +15,7 @@ import urllib.request
from pathlib import Path
from typing import Iterator
APP_VERSION = "0.5.0"
APP_VERSION = "0.5.1"
LANGUAGES = {"ru", "ky"}
DEFAULT_MAPPING = Path(__file__).with_name("minjust-fragments-index.json")