Skip to content

Instantly share code, notes, and snippets.

View amintos's full-sized avatar

Toni Mattis amintos

View GitHub Profile
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# Imports a Wikipedia dump into a CouchDB
# ... and makes it searchable by Apache Lucene
# REQUIREMENTS:
# - CouchDB
# - couchdb-lucene (https://github.com/rnewson/couchdb-lucene)
# - couchdb-python (http://code.google.com/p/couchdb-python/)
# Run CouchDB, start this script, run couchdb-lucene while script is running
# Trigger Indexing by Sample Query: