X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/fb3353b854f40b8fd97ea942d3d9814e80e14779..bf864b2c54390ca47121b49476c34bd7813bc7a9:/nominatim/clicmd/index.py diff --git a/nominatim/clicmd/index.py b/nominatim/clicmd/index.py index 8fd4f601..ea95e456 100644 --- a/nominatim/clicmd/index.py +++ b/nominatim/clicmd/index.py @@ -32,8 +32,11 @@ class UpdateIndex: @staticmethod def run(args): from ..indexer.indexer import Indexer + from ..tokenizer import factory as tokenizer_factory - indexer = Indexer(args.config.get_libpq_dsn(), + tokenizer = tokenizer_factory.get_tokenizer_for_db(args.config) + + indexer = Indexer(args.config.get_libpq_dsn(), tokenizer, args.threads or psutil.cpu_count() or 1) if not args.no_boundaries: