fix(news): add title search
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/pr-dev Build started...

This commit is contained in:
2026-07-06 21:52:40 +02:00
parent e868c4a47e
commit eb94fc5942
+8 -1
View File
@@ -80,7 +80,14 @@ async def search_news(
clauses = await _filter_clauses(year_from, year_to, relevance_values)
exact_query = {
"bool": {
"must": [{"match": {"full_content": query_text}}],
"must": [
{
"multi_match": {
"query": query_text,
"fields": ["maintitle^2", "full_content"],
}
}
],
"filter": clauses,
}
}