You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by harsh <ha...@orkash.com> on 2016/03/18 07:12:59 UTC

add a field in backend storage

Hi All

I want to add some field on storage backend while downloading the URLs 
in Fetch phase in nutch-gora-mongoDB.I am confusing whether it is 
possible through creating plugin OR change in source code. Kindly suggest.

Thanks





Re: add a field in backend storage

Posted by harsh <ha...@orkash.com>.
Thanks Divkot , catch you later , after a try.
On Friday 18 March 2016 11:58 AM, Divjot Singh wrote:
> Hi
>
> I have written custom code to add specific fields to my nutch table. I am
> using nutch 2.3.0. You need to add the field to gora-mongodb-mapping.xml
> file and also to the gora mappings files and then regenerate the avro
> schema file WebPage.java with gora compiler. Its a long option but then you
> would have more control over the fields. I have not explored the plugin
> option.
>
> Thanks
>
> On Fri, Mar 18, 2016 at 11:42 AM, harsh <ha...@orkash.com> wrote:
>
>> Hi All
>>
>> I want to add some field on storage backend while downloading the URLs in
>> Fetch phase in nutch-gora-mongoDB.I am confusing whether it is possible
>> through creating plugin OR change in source code. Kindly suggest.
>>
>> Thanks
>>
>>
>>
>>
>>


Re: add a field in backend storage

Posted by Divjot Singh <di...@gmail.com>.
Hi

I have written custom code to add specific fields to my nutch table. I am
using nutch 2.3.0. You need to add the field to gora-mongodb-mapping.xml
file and also to the gora mappings files and then regenerate the avro
schema file WebPage.java with gora compiler. Its a long option but then you
would have more control over the fields. I have not explored the plugin
option.

Thanks

On Fri, Mar 18, 2016 at 11:42 AM, harsh <ha...@orkash.com> wrote:

> Hi All
>
> I want to add some field on storage backend while downloading the URLs in
> Fetch phase in nutch-gora-mongoDB.I am confusing whether it is possible
> through creating plugin OR change in source code. Kindly suggest.
>
> Thanks
>
>
>
>
>