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
0
votes
1 answer

BufferedReader in pylucne

I am using pylucne to build a search system. I am using TREC data to test my system. I have successfully written the indexer and searcher code. Now I want to use TREC topics to evaluate my system. To do this there is a class named TrecTopicsReader()…
Abhishek Gupta
  • 6,465
  • 10
  • 50
  • 82
0
votes
1 answer

PyLucene install: OSError: [Errno 20] Not a directory: 'build/_lucene'

I'm trying to install PyLucene 4.3.0-1 on OSX 10.8.4, Python 2.7, Java 1.6. Following the instructions on PyLucene's site (http://lucene.apache.org/pylucene/install.html) all seems well until, a minute or so into the 'sudo make install' I get an…
liz
  • 1
  • 2
0
votes
1 answer

Unable to find definition of a abstract function

I have to do some modification in Lucene code. I have to modify the code which actually matches the query term with the index to add a new scheme to matching. Initially I wrote a code to search using PyLucene. You can find it here. From this it is…
Abhishek Gupta
  • 6,465
  • 10
  • 50
  • 82
0
votes
2 answers

Pylucene in Python 2.6 + MacOs Snow Leopard

Greetings, I'm trying to install Pylucene on my 32-bit python running on Snow Leopard. I compiled JCC with success. But I get warnings while making pylucene: ld: warning: in build/temp.macosx-10.6-i386-2.6/build/_lucene/__init__.o, file is not of…
jbastos
  • 1,217
  • 1
  • 12
  • 19
0
votes
1 answer

Lucene not giving results when specifying field

I have a database which I have indexed in Lucene (using Pylucene) by section (specified by markup in the document) using lucene's fields. This index seems to work fine. I can search it using the default field which is simply the entire document…
Ghost
  • 21
  • 3
0
votes
1 answer

Overriding a Java class from Python using JCC. Is that possible?

I'm using JCC to create a Python wrapper for a Java library and I need to override a method from a Java class inside the Python script. Is it possible? How can you do that if it is possible?
dagilpe
  • 147
  • 1
  • 14
-1
votes
1 answer

Overriding DefaultSimilarity's scorePayload method doesn't work in pulucene

I want to use payload in pylucene, justlike the java code in this article. The python snippet is: class PayloadSimilarity(PythonDefaultSimilarity): def scorePayload(self, docId, start, end, payload): # this never execute return…
iceout
  • 438
  • 3
  • 7
-2
votes
1 answer

I want to search words like "AND" , "OR" , "NOT" in lucene but it doesn't find them

Require help in lucene search Working on lucene i have tried phrase search and term search both but not getting results. These stop words cant be found in lucene index
1 2 3
8
9