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..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to