diff --git a/bin/Indexer.py b/bin/Indexer.py index 4fd9f15e..128993b1 100755 --- a/bin/Indexer.py +++ b/bin/Indexer.py @@ -21,7 +21,6 @@ from os.path import join, getsize from Helper import Process # Config variable -INDEX_SIZE_THRESHOLD = 500 #Mb TIME_WAIT = 1.0 #sec # return in bytes @@ -57,6 +56,7 @@ if __name__ == "__main__": indexRegister_path = join(os.environ['AIL_HOME'], p.config.get("Indexer", "register")) indexertype = p.config.get("Indexer", "type") + INDEX_SIZE_THRESHOLD = p.config.get("Indexer", "index_max_size") if indexertype == "whoosh": schema = Schema(title=TEXT(stored=True), path=ID(stored=True, unique=True), diff --git a/bin/packages/config.cfg.sample b/bin/packages/config.cfg.sample index f2e8285d..a634e4f1 100644 --- a/bin/packages/config.cfg.sample +++ b/bin/packages/config.cfg.sample @@ -123,6 +123,8 @@ cc_tld = r'\.de$' [Indexer] type = whoosh path = indexdir +#size in Mb +index_max_size = 2000 ###############################################################################