lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: import PyLucene and Introductory Material for Class
Date Mon, 18 Nov 2013 20:45:48 GMT

> On Nov 18, 2013, at 17:28, Carlos Andrade <carlos.andrade@acm.org> wrote:
> 
> Dear All,
> 
> I have recently installed pylucene (or so I hope), and I have been trying
> to get started on it. Most of the examples I found the web have been using
> 'import PyLucene',

The web is behind :-)
The 'lucene' module was introduced when PyLucene switched to being built with JCC,
years ago (2007 ?)

> however I have noted that examples from the Lucene
> documentation only use 'lucene'. For me, PyLucene does not work for import
> on the latest vesion I installed here (Lucene 4.5.1, python 2.7 on a Mac OS
> X Lion 10.7.5) but import lucene works.

You've installed the latest version. Good.

For instructional purposes, I'd recommend you use the last 3.x release (3.6.2 iirc) instead,
however, because it has most of the "Lucene in Action" book samples ported to Python. 
The 4.x release series API changed too much to make another samples porting effort worthwhile;
the samples need to be rewritten in Java first.

> Was PyLucene deprecated or have I done something wrong along the steps?

Does 'make test' succeed ?
PyLucene is still the name of the software product but 'lucene' is what you import.
Take a look at files in the samples or test directories for examples.

> Second,
> 
> Seeing a talk from one of your conferences:
> http://www.youtube.com/watch?v=SCsS5ePGmCs
> 
> gave me some hope to introduce Lucene in an Information Retrieval class for
> undergrads along with the theoretical concepts such as the one presented
> like boolean and vector. Is there any other introductory material to
> PyLucene along those lines that could be more oriented for students?

This is a more generic Lucene question, you should ask it on java-user@lucene.apache.org,
there are a lot more people there that are able to answer you.

> I was planning on creating a small usable example such as this presentation
> (http://inkdroid.org/talks/pylucene/) where Lucene is used to index e-mails
> (our university has quite a large quantity of e-mails that use this system
> so it could be quite interesting for the class as an assignment). But
> again, the cited code use PyLucene and so does the 'import mailbox' which
> makes the code unusable.
> 
> If no such material is available and you could provide me some pointers on
> how to get started,

If you know nothing of Lucene, getting the "Lucene in Action" book and working through the
samples is a great way to learn.

Andi..

> I would be glad to contribute it as introductory
> material that could be used for other courses if it is of your interest. I
> have scanned other courses from other universities but they apparently do
> not use this approach.
> 
> Best,
> 
> Carlos Andrade
> http://carlosandrade.co

Mime
View raw message