You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@manifoldcf.apache.org by Christoph Schwentker <cs...@gmail.com> on 2016/09/14 12:36:21 UTC

Custom Output Connector - Get Info from which repo a document comes

Hello,

I have written a Custom Output connector and want to know if it possible to
find out, from which repository a document comes.

E.g. In my output connector I want to distinguish if a document comes from
a database or from the filesystem.

I looked at the documentation and the code but could not really find a way
to achieve this...

So, It would be nice if someone could enlighten  me ;)

Best Regards,
Christoph

Re: Custom Output Connector - Get Info from which repo a document comes

Posted by Christoph Schwentker <cs...@gmail.com>.
Hi Karl,

Thanks for your fast reply.

I added it as metadata field using the metadata adjuster and now I can do
what I want :)

Regards,
Christoph

2016-09-14 14:43 GMT+02:00 Karl Wright <da...@gmail.com>:

> Hi Christoph,
>
> ManifoldCF does not pass information of this kind through in a document
> (your connector in general is not supposed to care about this), but you can
> readily add a document metadata value in your job pipeline that will
> accomplish the same thing.
>
> Thanks!
> Karl
>
>
>
> On Wed, Sep 14, 2016 at 8:36 AM, Christoph Schwentker <
> cschwentker@gmail.com> wrote:
>
>> Hello,
>>
>> I have written a Custom Output connector and want to know if it possible
>> to find out, from which repository a document comes.
>>
>> E.g. In my output connector I want to distinguish if a document comes
>> from a database or from the filesystem.
>>
>> I looked at the documentation and the code but could not really find a
>> way to achieve this...
>>
>> So, It would be nice if someone could enlighten  me ;)
>>
>> Best Regards,
>> Christoph
>>
>
>

Re: Custom Output Connector - Get Info from which repo a document comes

Posted by Karl Wright <da...@gmail.com>.
Hi Christoph,

ManifoldCF does not pass information of this kind through in a document
(your connector in general is not supposed to care about this), but you can
readily add a document metadata value in your job pipeline that will
accomplish the same thing.

Thanks!
Karl



On Wed, Sep 14, 2016 at 8:36 AM, Christoph Schwentker <cschwentker@gmail.com
> wrote:

> Hello,
>
> I have written a Custom Output connector and want to know if it possible
> to find out, from which repository a document comes.
>
> E.g. In my output connector I want to distinguish if a document comes from
> a database or from the filesystem.
>
> I looked at the documentation and the code but could not really find a way
> to achieve this...
>
> So, It would be nice if someone could enlighten  me ;)
>
> Best Regards,
> Christoph
>