Tag: Ubuntu 12.04

Pylucene- Part I: Creating index

How to write a simple index generator with pylucene 1 import lucene 2 3 if __name__ == ‘__main__’: 4 INDEX_DIR = “/home/kanaujia/lucene_index” 5 6 # Initialize lucene and JVM 7 lucene.initVM() 8 9 print “lucene version is:”, lucene.VERSION 10 11 # Get the analyzer 12 analyzer = lucene.StandardAnalyzer(lucene.Version.LUCENE_CURRENT) 13 14 # Get index storage 15…

Pylucene: Installation on Ubuntu

If you want to install pylucene automatically, try Synaptic package manager or apt-get. This installation gives you Pylucene2.3. This is old. If you wish to get the latest pylucene 3.6 or higher, please look for manual installation discussed in this post. Automatic installation (pylucene 2.3) Install everything mentioned here sudo apt-get install pylucene sudo apt-get…