Features: 1) Adjusted field weights in SMART_FIELDS for "name" and "name.ngram" to improve relevance scoring;

Fixes: None;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-23 19:28:30 +03:00
parent 0a81b12100
commit 5886ca0ab9

View file

@ -12,8 +12,8 @@ from rest_framework.request import Request
from core.models import Brand, Category, Product from core.models import Brand, Category, Product
SMART_FIELDS = [ SMART_FIELDS = [
"name^5", "name^6",
"name.ngram^4", "name.ngram^5",
"name.phonetic", "name.phonetic",
"title^4", "title^4",