mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
More robustly default to searching all content type
This commit is contained in:
@@ -1337,7 +1337,7 @@ async def execute_search(
|
||||
user: KhojUser,
|
||||
q: str,
|
||||
n: Optional[int] = 5,
|
||||
t: Optional[state.SearchType] = state.SearchType.All,
|
||||
t: Optional[state.SearchType] = None,
|
||||
r: Optional[bool] = False,
|
||||
max_distance: Optional[Union[float, None]] = None,
|
||||
dedupe: Optional[bool] = True,
|
||||
@@ -1360,6 +1360,7 @@ async def execute_search(
|
||||
# initialize variables
|
||||
user_query = q.strip()
|
||||
results_count = n or 5
|
||||
t = t or state.SearchType.All
|
||||
search_futures: List[concurrent.futures.Future] = []
|
||||
|
||||
# return cached results, if available
|
||||
|
||||
Reference in New Issue
Block a user