[pylucene-dev] Use PyLucene with Nutch index
kevin Chen
kevin_k_chen at yahoo.com
Sat Jun 2 17:30:46 PDT 2007
Thanks.
I realized that the Nutch use "anchor" instead of
"Keyword" as search field. After change mansearch.py,
it works fine with Nutch index.
--- Andi Vajda <vajda at osafoundation.org> wrote:
>
> 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
> pylucene-dev at osafoundation.org
>
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
>
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
More information about the pylucene-dev
mailing list