You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by WebDev Freak <we...@gmail.com> on 2006/09/29 04:07:08 UTC

Problem Searching

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.

Thanks,

Re: Problem Searching

Posted by payo <pa...@yahoo.com>.
hi 

you can put the code for see

i am tried implement subcollection but this part, dont work

thanks for you help



WebDev Freak wrote:
> 
> 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 <ss...@gmail.com> 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,
>> >
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-Searching-tp6558248p14375794.html
Sent from the Nutch - User mailing list archive at Nabble.com.


Re: Problem Searching

Posted by WebDev Freak <we...@gmail.com>.
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 <ss...@gmail.com> 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,
> >
>
>

Re: Problem Searching

Posted by Sami Siren <ss...@gmail.com>.
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,
>