[pylucene-dev] (no subject)
Andi Vajda
vajda at osafoundation.org
Wed May 17 09:32:26 PDT 2006
On Wed, 17 May 2006, Thapar, Ashwin wrote:
> I am an introductory programmer, but am trying to use Python and
> pyLucene to help a professor with conducting some business research. I
> am simply trying to use pyLucene to search through a folder of text
> files, and find files containing instances of a given string (similar to
> what grep does in linux). However, I found the documentation with
> pyLucene confusing and not very helpful. Can anyone help me with this?
> Or alternatively, can anyone point me in the direction of a good
> beginners guide to pyLucene?
PyLucene is a compilation of Java Lucene by gcj wrapped for use by Python. As
such, its APIs are the same as Java Lucene's. The exceptions to this are noted
in PyLucene's README file:
http://svn.osafoundation.org/pylucene/trunk/README
Good sources for Lucene users getting started are:
- The java-user at lucene.apache.org mailing list.
- The "Lucene in Action" book. Almost all samples included in this book are
available in Python with PyLucene and should provide a very good starting
point for many PyLucene tasks:
http://svn.osafoundation.org/pylucene/trunk/samples/LuceneInAction
- The Java Lucene javadocs:
http://lucene.apache.org/java/docs/api/index.html
Another sample that is close to what you're trying to do, indexing and
searching the man pages of a unix system, is included too:
- http://svn.osafoundation.org/pylucene/trunk/samples/manindex.py
- http://svn.osafoundation.org/pylucene/trunk/samples/mansearch.py
Andi..
More information about the pylucene-dev
mailing list