Skip to content

Commit

Permalink
chore: modify wiki index size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
cir9no committed Nov 4, 2024
1 parent 9f4d884 commit 99320a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion seasearch/index_store/wiki_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def process_file(doc_uuid, content):
if not is_in_wiki_dirs(path):
continue

if self.size_cap is not None and int(size) <= int(self.size_cap):
if self.size_cap is not None and int(size) >= int(self.size_cap):
continue
doc_uuid = path.split('/')[2]
if content := self.get_wiki_content(wiki_id, obj_id):
Expand Down
2 changes: 1 addition & 1 deletion seasearch/index_task/index_task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _parse_config(self, config):
config, section_name, 'seasearch_token'
)
wiki_size_limit = get_opt_from_conf_or_env(
config, section_name, 'wiki_file_size_limit', default=int(10)
config, section_name, 'wiki_file_size_limit', default=int(5)
)
self.seasearch_api = SeaSearchAPI(
seasearch_url,
Expand Down
2 changes: 1 addition & 1 deletion seasearch/script/wiki_index_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def start_index_local():
config, section_name, 'seasearch_token'
)
wiki_size_limit = get_opt_from_conf_or_env(
config, section_name, 'wiki_file_size_limit', default=int(10)
config, section_name, 'wiki_file_size_limit', default=int(5)
)
index_manager = IndexManager(config)
seasearch_api = SeaSearchAPI(seasearch_url, seasearch_token)
Expand Down

0 comments on commit 99320a3

Please sign in to comment.