Are event's properties overwritten by new properties?

23 views
Skip to first unread message

Marius Rabenarivo

unread,
May 26, 2017, 7:25:30 AM5/26/17
to us...@predictionio.incubator.apache.org, actionml-user
Hello everyone,

When sending new $set properties event,

It seems like the previous properties are overwritten.

For example

if I send properties : {a : "a"}
and then properties : {b: "b"}

then when requesting the event server, I get only {b: "b"}

Is this normal?

Regards,

Marius

Pat Ferrel

unread,
May 26, 2017, 11:47:15 AM5/26/17
to Marius Rabenarivo, us...@predictionio.incubator.apache.org, actionml-user
No but if you are using the UR (I’m guessing from the lists you posted on) you would encode those as arrays with only one value.

Can you share the entire 2 $set events json?


--
You received this message because you are subscribed to the Google Groups "actionml-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionml-use...@googlegroups.com.
To post to this group, send email to action...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/actionml-user/CAC-ATVHz1RFN%2B8ixuZb5Q4Wdqt5rJ2G0u8wO8eUdVmKT6K%2Bt6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Marius Rabenarivo

unread,
May 27, 2017, 7:57:03 AM5/27/17
to Pat Ferrel, us...@predictionio.incubator.apache.org, actionml-user
Sorry, it was a confusion from my part.

The 2 events are there.

I was thinking that the properties will be aggregated in the event server.

2017-05-26 19:47 GMT+04:00 Pat Ferrel <p...@occamsmachete.com>:
No but if you are using the UR (I’m guessing from the lists you posted on) you would encode those as arrays with only one value.

Can you share the entire 2 $set events json?

On May 26, 2017, at 4:25 AM, Marius Rabenarivo <mariusra...@gmail.com> wrote:

Hello everyone,

When sending new $set properties event,

It seems like the previous properties are overwritten.

For example

if I send properties : {a : "a"}
and then properties : {b: "b"}

then when requesting the event server, I get only {b: "b"}

Is this normal?

Regards,

Marius

--
You received this message because you are subscribed to the Google Groups "actionml-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionml-user+unsubscribe@googlegroups.com.

Pat Ferrel

unread,
May 28, 2017, 11:33:17 AM5/28/17
to Marius Rabenarivo, us...@predictionio.incubator.apache.org, actionml-user
If the item id is the same, they are both attached to the same item and will be aggregated.

But they should be arrays of strings for the UR template.

All templates define their own way of interpreting input and this is required by the UR for categorical properties.
To unsubscribe from this group and stop receiving emails from it, send an email to actionml-use...@googlegroups.com.

To post to this group, send email to action...@googlegroups.com.

Marius Rabenarivo

unread,
May 29, 2017, 12:59:40 AM5/29/17
to Pat Ferrel, us...@predictionio.incubator.apache.org, actionml-user
Ah Ok. Thanks

It's good to know for categorical properties but for the moment I use properties for biasing and filtering.


To post to this group, send email to actionml-user@googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "actionml-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionml-user+unsubscribe@googlegroups.com.
To post to this group, send email to actionml-user@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages