Setup File Filter for Markdown and Ledger content types

- Pass file associated with entries in markdown, beancount to json converters
- Add File, Word, Date Filters to Ledger, Markdown Types
  - Word, Date Filters were accidently removed from the above types yesterday
  - File Filter is the only filter that newly got added
This commit is contained in:
Debanjum Singh Solanky
2022-09-06 15:27:31 +03:00
parent 94cf3e97f3
commit 490157cafa
5 changed files with 62 additions and 28 deletions

View File

@@ -45,7 +45,7 @@ class DateFilter(BaseFilter):
continue
self.date_to_entry_ids[date_in_entry].add(id)
end = time.time()
logger.debug(f"Created file filter index: {end - start} seconds")
logger.debug(f"Created date filter index: {end - start} seconds")
def can_filter(self, raw_query):

View File

@@ -4,9 +4,6 @@ import time
import pickle
import logging
# External Packages
import torch
# Internal Packages
from src.search_filter.base_filter import BaseFilter
from src.utils.helpers import LRU, resolve_absolute_path