Commit d18811cf authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

Quote search_term to handle hyphen(-)

parent fa0222e8
Pipeline #181727 canceled with stages
in 1 minute and 39 seconds
......@@ -8,6 +8,10 @@ class SearchQuery(BaseModel):
page: Optional[int] = 1
per_page: Optional[int] = 100
@validator("query")
def quote_search_term(cls, query):
return f'"{query}"'
class SearchResultMeta(BaseModel):
total_hits: int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment