Skip to content

Files

Latest commit

 

History

History
18 lines (12 loc) · 447 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 447 Bytes

postgresql-fts-example

Example of full text search in PostgreSQL: script for parsing Wikipedia dump.

How to use:

  1. Download Wikipedia dump from here.
  2. Unpack it: bzip2 -d -k -v enwiki-20170401-pages-articles.xml.bz2
  3. Import data to PostgreSQL:
mkvirtualenv postgresql-fts
pip install -r requirements.txt
./parse.py enwiki-20170401-pages-articles.xml