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,
>


-------------------------------------------------------------------------
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