mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Remove all filter terms in user query from defiltered_query
Previously only the the last filter's terms were getting effectively applied as the `filter.defilter' operation was being done on `user_query' but was updating the `defiltered_query'
This commit is contained in:
parent
72f8fde7ef
commit
7190b3811d
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ async def search(
|
||||||
# Encode query with filter terms removed
|
# Encode query with filter terms removed
|
||||||
defiltered_query = user_query
|
defiltered_query = user_query
|
||||||
for filter in [DateFilter(), WordFilter(), FileFilter()]:
|
for filter in [DateFilter(), WordFilter(), FileFilter()]:
|
||||||
defiltered_query = filter.defilter(user_query)
|
defiltered_query = filter.defilter(defiltered_query)
|
||||||
|
|
||||||
encoded_asymmetric_query = None
|
encoded_asymmetric_query = None
|
||||||
if t == SearchType.All or t != SearchType.Image:
|
if t == SearchType.All or t != SearchType.Image:
|
||||||
|
|
Loading…
Reference in a new issue