Thanks the code sample worked great. However I just noticed that we must also be able to search multiple collections based on which collections the user selects. I'm digging in the source to find a way to do it but I haven't got any luck. Is their a way to append more than 1 collection in the clause ? Thanks for you help.
On 9/29/06, Sami Siren <[EMAIL PROTECTED]> wrote:
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, >
