fix: improve search relevance ranking
This commit is contained in:
@@ -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",
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user