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
1
vote
1 answer

PyLucene org.apache.lucene.benchmark is missing

i just installed PyLucene 4.9 (and also tried with 4.8) via Makefile on Ubuntu 14.04, everything is running fine except that i am missing the modules in org.apache.lucene.benchmark. The PyLucene documentation says it's there: PyLucene…
soultice
  • 49
  • 6
1
vote
0 answers

compile Pylucene on Mac: Unsupported major.minor version 51.0, but java 1.7 is installed

I have Python 2.6 (32-bit) and java 1.7 on my Mac. I use make command to compile pylucene 2.9.4 on my Mac 10.8.5. An error occurs: Unsupported major.minor version 51.0. Like: Exception in thread "main" java.lang.UnsupportedClassVersionError:…
Jinping
  • 23
  • 2
1
vote
1 answer

import issues with Lucene classes from PyLucene in Pydev

I have the Pydev plugin installed in my Eclipse, and I am calling PyLucene in my python code. Lucene is in the PYTHONPATH and hence import lucene gives no errors. But trying to use anything derived from lucene class gives 'unresolved import'…
nmramesh
  • 11
  • 3
1
vote
0 answers

Python: Installing JCC on Windows

I'm trying to install PyLucene on a 64-bit Windows machine and the first thing I need to do is install JCC. On the installation page it says I need to change the INCLUDES, CFLAGS, DEBUG_CFLAGS, LFLAGS and JAVAC values in the setup.py file. I have…
1
vote
0 answers

Trouble installing JCC (required for pylucene) on mac

I am following closely the installation guide for pylucene. I am unable to get past the first step, which requires installing JCC. To install JCC the instructions briefly note that mac users will need to: Edit setup.py and review that values in…
1
vote
1 answer

Custom Tokenizer for pylucene which tokenizes text based only on underscores (retains spaces)

I am new to pylucene and I am trying to build a custom analyzer which tokenizes text on the basis of underscores only, i.e. it should retain the whitespaces. Example: "Hi_this is_awesome" should be tokenized into ["hi", "this is", "awesome"]…
Vandana
  • 41
  • 3
1
vote
1 answer

Custom stopwords for PyLucene

In PyLucene, there is a filter called StopFilter which filters tokens based on given stopwords. The example call is as follows: result = StopFilter(True, result, StopAnalyzer.ENGLISH_STOP_WORDS_SET) It seems like it should be easy to replace the…
alexplanation
  • 1,468
  • 14
  • 18
1
vote
1 answer

DelimitedPayloadFilter in PyLucene?

I am trying to implement a python version of the java from http://searchhub.org/2010/04/18/refresh-getting-started-with-payloads/ using pylucene. My analyzer is producing an lucene.InvalidArgsError on the init call to the DelimitedTokenFilter The…
M C
  • 11
  • 2
1
vote
0 answers

use custom collector with pylucene 2.9.4

I'm trying to calculate high-PMI terms for a particular token in pylucene. A colleague gave me some Java code that works, but I am having trouble translating it into Python. In particular, the code relies on a custom collector. Here's the initial…
1
vote
2 answers

only parts of pylucene are available?

i'm trying to port some Java Lucene code into pylucene (v 2.3.1). i'm using the examples in http://svn.apache.org/viewcvs.cgi/lucene/pylucene/trunk/samples/, and most of pylucene seems to come into my python (ubuntu 12.04, pydev 2.6.0, eclipse…
rikb
  • 630
  • 5
  • 18
1
vote
1 answer

How to use highlighter in pyLucene?

I have read some tutorials about highlighting search terms in Lucene, and came up with a piece of code like this: (...) query = parser.parse(query_string) for scoreDoc in searcher.search(query, 50).scoreDocs: doc = searcher.doc(scoreDoc.doc) …
mik01aj
  • 11,928
  • 15
  • 76
  • 119
1
vote
2 answers

How do I instantiate a StandardAnalyzer in pylucene 3.5? Where is the Version object?

I'm trying to use PyLucene, and I can't find any code examples that actually run in my current version. (See, for example, http://nullege.com/codes/search/PyLucene.StandardAnalyzer). At some point you need to instantiate an analyzer. It would appear…
rspeer
  • 3,539
  • 2
  • 25
  • 25
0
votes
1 answer

dll in a different directory than c:\windows\system32

Finally I managed to get pylucene working on my windows7 machine, Which raised a more general question: How come that when I have a dll on a directory in the path, python couldn't find it, and when I put the dll in c:\windows\system32 - it did…
Boaz
  • 4,864
  • 12
  • 50
  • 90
0
votes
1 answer

Lucene automatic indexer

I have just started learning Lucene and would like to use it for indexing the hard drive and my email, what i'm wondering whether Lucene has something for helping me with that or I have to build some kind of observer, which watch for any changes…
Félix
  • 579
  • 4
  • 21
0
votes
1 answer

Is apache killing my process?

I have a strange problem regarding lucene and apache. I am using lucene for full text search and for a search I need to call: initVM() I found out that after this call nothing gets executed. So this all happens for a http request handled through…
user944308
  • 27
  • 4
1 2 3
8 9