You can cut and paste this code into any indexing plugin, or create a new one:

   // add links
    Outlink[] outlinks = parse.getData().getOutlinks();
    int end = Math.min(outlinks.length,
UpdateDatabaseTool.MAX_OUTLINKS_PER_PAGE);
    for (int i = 0; i < end; i++) {
        Outlink link = outlinks[i];
        String linkUrl = link.getToUrl();

        doc.add(new Field("link", linkUrl, false, true, false));      
    }

Then you'd have to create a query plugin to all searches using the link: syntax.

Andy

On 4/26/05, Marco PV <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Anyone here expert on Nutch could help me to find a way to use the class
> GetLinks???
> It seems that my messages are being ignored...
> 
> Isn't this a great feature to search for "link:www.xxx.com"?
> Or even to be able to show where a image come from in the case of searching
> image files....
> 
> Hope somebody read this message and could spare some attentio....
> 
> Thanks,
> Marco
> 
> >From: Doug Cutting <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >Subject: Re: Error at building nutch with ant.
> >Date: Tue, 26 Apr 2005 09:58:44 -0700
> >
> >Jakob Heidebrecht wrote:
> >>i get this error when i try to build nutch with ant.
> >
> >What version of Java are you using?  What version of Nutch are you
> >compiling?  On what platform?
> >
> >Doug
> 
> _________________________________________________________________
> MSN Messenger: instale gr�tis e converse com seus amigos.
> http://messenger.msn.com.br
> 
>

Reply via email to