Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pylucene with python 3

I have a virtual environment with python 3.4.3. I want to install pylucene for this environment.

How can I do that? Or can I somehow still run pylucene if I use the python from my virtual environment?

I couldn't find any info on python 3 support on http://lucene.apache.org/pylucene/install.html and if I follow the instructions, I'm getting syntax error on the phase of JCC installation as the code is expected to be run with python 2.x.

like image 856
gevra Avatar asked Dec 09 '15 03:12

gevra


People also ask

What is PyLucene?

PyLucene is a Python extension for accessing Java Lucene™. Its goal is to allow you to use Lucene's text indexing and searching capabilities from Python. It is API compatible with Java Lucene version 9.1. 0 as of April 27th, 2022.


2 Answers

Updated answer: PyLucene 6.5.0 is now officially ported to python3. http://lucene.apache.org/pylucene/

I have ported jcc and pylucene to python3

First install jcc from here: https://github.com/rudimeier/jcc

Then pylucene from here: https://github.com/rudimeier/pylucene

The pylucene repository contains 3 ported versions (3.x, 4.x and 6.x) in different branches.

like image 52
rudimeier Avatar answered Oct 05 '22 12:10

rudimeier


PyLucene doesn't currently support Python 3; it's unclear if it will.

like image 29
A. Coady Avatar answered Oct 05 '22 13:10

A. Coady