WebDev Freak wrote:
> Hi, I'm using the subcollection.xml file to create collection but I can't
> find any code samples to search for a term in a specific collection.  I'm
> looking for java code samples.

look in contrib/web2, there's a piece of java code that does this (reads 
collection name from request parameter, put there by the view part of 
that plugin, and modifies query object accordingly)

http://svn.apache.org/viewvc/lucene/nutch/trunk/contrib/web2/plugins/web-subcollection/src/java/org/apache/nutch/webapp/subcollection/SubcollectionPreSearchExtension.java?view=markup

So basically what you need to do is modify the Query.

--
  Sami Siren

> 
> Thanks,
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to