refactoring(search.py): logs for search-combine and search-authors are equal
All checks were successful
Deploy on push / deploy (push) Successful in 6s
All checks were successful
Deploy on push / deploy (push) Successful in 6s
This commit is contained in:
parent
a1a61a6731
commit
c344fcee2d
|
@ -696,8 +696,6 @@ class SearchService:
|
||||||
if not isinstance(text, str) or not text.strip():
|
if not isinstance(text, str) or not text.strip():
|
||||||
return []
|
return []
|
||||||
|
|
||||||
logger.info(f"Searching for: '{text}' (limit={limit}, offset={offset})")
|
|
||||||
|
|
||||||
# Check if we can serve from cache
|
# Check if we can serve from cache
|
||||||
if SEARCH_CACHE_ENABLED:
|
if SEARCH_CACHE_ENABLED:
|
||||||
has_cache = await self.cache.has_query(text)
|
has_cache = await self.cache.has_query(text)
|
||||||
|
@ -715,6 +713,8 @@ class SearchService:
|
||||||
else:
|
else:
|
||||||
search_limit = limit
|
search_limit = limit
|
||||||
|
|
||||||
|
logger.info(f"Searching for: '{text}' (limit={limit}, offset={offset}, search_limit={search_limit})")
|
||||||
|
|
||||||
response = await self.client.post(
|
response = await self.client.post(
|
||||||
"/search-combined",
|
"/search-combined",
|
||||||
json={"text": text, "limit": search_limit},
|
json={"text": text, "limit": search_limit},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user