diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-26 13:22:36 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-26 13:22:36 +1000 |
| commit | 07397961bfb113bd9c03883f2b24e6d287f989ca (patch) | |
| tree | a5a4fc18b54689497eae85f269e9467e1a0068aa /backend/data/enwiki | |
| parent | 2d67e54dc91708eaf89eca9dca27cec126f7f465 (diff) | |
Add some enwiki redirect data as alt-names
Diffstat (limited to 'backend/data/enwiki')
| -rwxr-xr-x | backend/data/enwiki/genData.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/data/enwiki/genData.py b/backend/data/enwiki/genData.py index 4f0d62e..646292c 100755 --- a/backend/data/enwiki/genData.py +++ b/backend/data/enwiki/genData.py @@ -91,6 +91,7 @@ dbCur = dbCon.cursor() dbCur.execute("CREATE TABLE pages (id INT PRIMARY KEY, title TEXT UNIQUE)") dbCur.execute("CREATE INDEX pages_title_idx ON pages(title COLLATE NOCASE)") dbCur.execute("CREATE TABLE redirects (id INT PRIMARY KEY, target TEXT)") +dbCur.execute("CREATE INDEX redirects_idx ON redirects(target)") dbCur.execute("CREATE TABLE descs (id INT PRIMARY KEY, desc TEXT)") # Read through dump file print("Reading dump file") |
