Skip to content

Commit a7ee2e4

Browse files
authored
Add language to search (#291)
1 parent c11469c commit a7ee2e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/marqo/index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def search(self, q: Optional[Union[str, dict]] = None, searchable_attributes: Op
225225
rerank_depth: Optional[int] = None, facets: Optional[dict] = None,
226226
track_total_hits: Optional[bool] = None,
227227
approximate_threshold: Optional[float] = None,
228+
language: Optional[str] = None,
228229
) -> Dict[str, Any]:
229230
"""Search the index.
230231
@@ -306,7 +307,8 @@ def search(self, q: Optional[Union[str, dict]] = None, searchable_attributes: Op
306307
"textQueryPrefix": text_query_prefix,
307308
"hybridParameters": hybrid_parameters,
308309
"facets": facets,
309-
"trackTotalHits": track_total_hits
310+
"trackTotalHits": track_total_hits,
311+
"language": language
310312
}
311313

312314
body = {k: v for k, v in body.items() if v is not None}

0 commit comments

Comments
 (0)