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,
