We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd09ed0 commit 22f7ffcCopy full SHA for 22f7ffc
1 file changed
solr/query.py
@@ -50,8 +50,8 @@ def query_by_gender_and_city(client: pysolr.Solr, gender: str, city: str) -> lis
50
return [str(result) for result in results]
51
52
53
-def query_with_boosting(search_term: str) -> list[str]:
54
- results = solr.search(
+def query_with_boosting(client: pysolr.Solr, search_term: str) -> list[str]:
+ results = client.search(
55
f"name:{search_term}^2 OR email:{search_term}",
56
**{"q.op": "OR", "indent": "true"},
57
)
0 commit comments