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