Rename orgmode_search to org_search

This commit is contained in:
Saba
2023-06-13 16:06:54 -07:00
parent 08d79f5ba4
commit 019d3732de
4 changed files with 8 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ def configure_search(model: SearchModels, config: FullConfig, regenerate: bool,
if (t == state.SearchType.Org or t == None) and config.content_type.org:
logger.info("🦄 Setting up search for orgmode notes")
# Extract Entries, Generate Notes Embeddings
model.orgmode_search = text_search.setup(
model.org_search = text_search.setup(
OrgToJsonl,
config.content_type.org,
search_config=config.search_type.asymmetric,

View File

@@ -91,11 +91,11 @@ def search(
logger.debug(f"Return response from query cache")
return state.query_cache[query_cache_key]
if (t == SearchType.Org or t == None) and state.model.orgmode_search:
if (t == SearchType.Org or t == None) and state.model.org_search:
# query org-mode notes
with timer("Query took", logger):
hits, entries = text_search.query(
user_query, state.model.orgmode_search, rank_results=r, score_threshold=score_threshold, dedupe=dedupe
user_query, state.model.org_search, rank_results=r, score_threshold=score_threshold, dedupe=dedupe
)
# collate and return results

View File

@@ -59,7 +59,7 @@ class ImageSearchModel:
@dataclass
class SearchModels:
orgmode_search: TextSearchModel = None
org_search: TextSearchModel = None
ledger_search: TextSearchModel = None
music_search: TextSearchModel = None
markdown_search: TextSearchModel = None