Questions tagged [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.

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.

PyLucene is not a Lucene port but a Python wrapper around Java Lucene. PyLucene embeds a Java VM with Lucene into a Python process.

128 questions
10
votes
1 answer

PyLucene error with IceTea / JDK / JRE

I have followed the installation instructionrs http://bendemott.blogspot.de/2013/11/installing-pylucene-4-451.html for pylucene using the latest pylucene-4.9.0.0. And when i tried to to lucene.initVM(), I get the following error: alvas@ubi:~$…
alvas
  • 115,346
  • 109
  • 446
  • 738
8
votes
1 answer

How fast is Whoosh?

Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python (official website). But I cannot find any speed / performance comparison to other search engine, especially Lucene based (pyLucene, Lupyne...) ? I'm…
dtrckd
  • 657
  • 7
  • 17
7
votes
2 answers

Installing PyLucene on a Mac

I would like to be able to use pyLucene on my Mac. The instructions have me hopelessly lost because each instruction for setting up or making requires that I do something before it, and it's hard to know where to start and what to do from what…
6
votes
3 answers

Windows build for PyLucene+JCC on python 2.6

Where can I download a PyLucene+JCC Windows build compiled for python 2.6? Jose
Jose Bastos
  • 111
  • 2
  • 3
5
votes
2 answers

PyLucene Indexer and retriever sample

I'm new to Lucene. I want to write a sample code of PyLucene 6.5 in Python 3. I changed this sample code for the version. However, I could find few document and I'm not sure the changes are correct. # indexer.py import sys import lucene from…
ywat
  • 2,757
  • 5
  • 24
  • 32
5
votes
2 answers

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…
gevra
  • 737
  • 2
  • 14
  • 26
5
votes
3 answers

Python 2.6 + JCC + Pylucene issue

Greetings, I'm trying to use pylucene in Python 2.6. Since there's no windows build for 2.6, I try to build the source code. First of all, I build JCC (windows, using cygwin) python setup.py build running build running build_py [...] building 'jcc'…
Jose Bastos
  • 111
  • 2
  • 3
5
votes
2 answers

writing a custom anaylzer in pylucene/inheritance using jcc?

I want to write a custom analyzer in pylucene. Usually in java lucene , when you write a analyzer class , your class inherits lucene's Analyzer class. but pylucene uses jcc , the java to c++/python compiler. So how do you let a python class…
Alex Brooks
  • 5,133
  • 4
  • 21
  • 27
4
votes
1 answer

Should I use Jython with Lucene or PyLucene?

I am working on a project where I need to do information retrieval with Lucene. I code in Python and not familiar with Java. The dataset will have 4000 documents. After looking into this, it seems I can use Jython with Lucene or Pylucene. The…
Bonnie Yu MSFT
  • 300
  • 2
  • 12
4
votes
1 answer

Where is the best place to do initVM and attachCurrentThread when using pylucene in Django

I'm using pylucene in a django based site and I was wondering if anyone knew where the best place to start up the jvm and attach threads would be. I don't want to have to start a new jvm every time someone loads a page, but I was occasionally…
Skunkwaffle
  • 596
  • 4
  • 18
4
votes
1 answer

Installing PyLucene 3.0.3 on Ubuntu 10.04

I'm attempting to install PyLucene 3.0.3 on Ubuntu 10.04. This has proven considerably challenging, but so far I've: Patched setuptools to allow building of JCC, as instructed in the PyLucene docs. Built JCC via: cd pylucene-3.0.3-1/jcc; python…
Cerin
  • 60,957
  • 96
  • 316
  • 522
4
votes
3 answers

Lucene QueryParser interprets 'AND OR' as a command?

I am calling Lucene using the following code (PyLucene, to be precise): analyzer = StandardAnalyzer(Version.LUCENE_30) queryparser = QueryParser(Version.LUCENE_30, "text", analyzer) query = queryparser.parse(queryparser.escape(querytext)) But…
Joseph Turian
  • 15,430
  • 14
  • 47
  • 62
4
votes
1 answer

Building Pylucene on ubuntu 14.04(trusty tahr)

As per the installation instructions, JCC is successfully built. Dependencies Installed were: ant, openjdk-7-jdk, python-setuptools, python-dev. Then procedding to make pylucene, in "Makefile" i choose specs corresponding to Ubuntu 11. # Linux …
user3749408
  • 41
  • 1
  • 4
4
votes
2 answers

How do I use StandardAnalyzer with TermQuery?

I'm trying to produce something similar to what QueryParser in lucene does, but without the parser, i.e. run a string through StandardAnalyzer, tokenize this and use TermQuery:s in a BooleanQuery to produce a query. My problem is that I only get…
Joakim Lundborg
  • 10,920
  • 6
  • 32
  • 39
4
votes
1 answer

pylucene install makefile error

When I build the pylucene environment, I meet this problem. I don't know how to config the makefile of it on Windows platform. Someone help me, if there is any example about building pylucene on Windows. The cmd shows that: can not find…
1
2 3
8 9