[pylucene-dev] Use PyLucene with Nutch index

Andi Vajda vajda at osafoundation.org
Sat Jun 2 11:21:23 PDT 2007


On Sat, 2 Jun 2007, kevin Chen wrote:

> I am using Nutch to crawl and index Web sites. But I'd
> like use a python interface to do the search. Can this
> be done? Can I use PyLucene to search Nutch index?

Yes, I assume so. PyLucene and Lucene indexes are identical.
I've never used Nutch nor do I know much about it but if its index is a Lucene 
index, then PyLucene should be able to work with it as well.

> I tried to use mansearch.py and pointed index to nutch
> index directory, but the search never returned any
> results.

mansearch.py searches indexes produced by manindex.py. Unless the Nutch index 
you use has the same schema (field names on documents), you won't find much 
with mansearch.py. To search an index, you need to know what fields to search 
on.

Andi..


More information about the pylucene-dev mailing list