You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by idioma <co...@gmail.com> on 2016/04/28 17:19:13 UTC

Identifier Attribute for PutElasticSearch

Hi,
I am trying to use the out-of-the-box PutElastiSearch with my local
ElasticSearch installation (I am on Windows), but I am rather puzzled about
the actual value to be included for the PropertyDescriptor: Identifier
Attribute. Can you provide an example? 

Thanks,

I.



--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/Identifier-Attribute-for-PutElasticSearch-tp9683.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Re: Identifier Attribute for PutElasticSearch

Posted by idioma <co...@gmail.com>.
Hi Bryan,
thank you so much for this. Once again, your replies are very valuable to
me, it does now make more sense.

Thank you



--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/Identifier-Attribute-for-PutElasticSearch-tp9683p9710.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Re: Identifier Attribute for PutElasticSearch

Posted by Matt Burgess <ma...@gmail.com>.
Identifier Attribute is a little confusing and different, I struggled
to decide whether to have an "Identifier" property or an "Identifier
Attribute" property, and chose the latter because if you had an
Identifier property and didn't use expression language, then the
processor would immediately fail on the second Put because all
identifiers would be the same. Having an Identifier Attribute was
supposed to make it clear that the identifier should be unique and
associated with each document. I'm not sure it ended up being as clear
as I'd hoped :-P

Identifier Attribute refers to the name of the FlowFile attribute that
contains the identifier for the document. So in the above example you
will want to set it to "uuid", not "${uuid}". PutElasticsearch will
then get the value of the "uuid" attribute, and use that value as the
identifier for the document in ES.

Regards,
Matt

On Thu, Apr 28, 2016 at 12:54 PM, Bryan Bende <bb...@gmail.com> wrote:
> Hello,
>
> ElasticSearch requires id for each document that is added. The value of
> this property will be the id on the document being added.
>
> You would likely set the value of this property to expression language that
> references a FlowFile attribute, you could use ${uuid} to use the
> FlowFile's uuid as your ElasticSearch id.
>
> -Bryan
>
>
> On Thu, Apr 28, 2016 at 11:19 AM, idioma <co...@gmail.com> wrote:
>
>> Hi,
>> I am trying to use the out-of-the-box PutElastiSearch with my local
>> ElasticSearch installation (I am on Windows), but I am rather puzzled about
>> the actual value to be included for the PropertyDescriptor: Identifier
>> Attribute. Can you provide an example?
>>
>> Thanks,
>>
>> I.
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-nifi-developer-list.39713.n7.nabble.com/Identifier-Attribute-for-PutElasticSearch-tp9683.html
>> Sent from the Apache NiFi Developer List mailing list archive at
>> Nabble.com.
>>

Re: Identifier Attribute for PutElasticSearch

Posted by Bryan Bende <bb...@gmail.com>.
Hello,

ElasticSearch requires id for each document that is added. The value of
this property will be the id on the document being added.

You would likely set the value of this property to expression language that
references a FlowFile attribute, you could use ${uuid} to use the
FlowFile's uuid as your ElasticSearch id.

-Bryan


On Thu, Apr 28, 2016 at 11:19 AM, idioma <co...@gmail.com> wrote:

> Hi,
> I am trying to use the out-of-the-box PutElastiSearch with my local
> ElasticSearch installation (I am on Windows), but I am rather puzzled about
> the actual value to be included for the PropertyDescriptor: Identifier
> Attribute. Can you provide an example?
>
> Thanks,
>
> I.
>
>
>
> --
> View this message in context:
> http://apache-nifi-developer-list.39713.n7.nabble.com/Identifier-Attribute-for-PutElasticSearch-tp9683.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>