def import_and_index_data_from_place_table(context):
""" Import data previously set up in the place table.
"""
- context.nominatim.run_nominatim('refresh', '--functions')
context.nominatim.run_nominatim('import', '--continue', 'load-data',
- '--index-noanalyse', '-q')
+ '--index-noanalyse', '-q',
+ '--offline')
check_database_integrity(context)
plist.sort()
with context.db.cursor(cursor_factory=psycopg2.extras.DictCursor) as cur:
- if nctx.tokenizer == 'icu':
+ if nctx.tokenizer != 'legacy':
cur.execute("SELECT word FROM word WHERE type = 'P' and word = any(%s)",
(plist,))
else: