Hi,
I am trying to do delta extract of mongo data based on a timestamp (epoch) field. The examples given do not really cover this and I have tried several permutations. The current example I treid is :-
{ "$query" : { "rating.addedTimestamp" : { $gte : "1366387401" }}}
I am also trying to use $or :-
{ "$query" : { $or : [{"rating.addedTimestamp" : { $gte : "1366389453" }},{"rating.updatedTimestamp" : { $gte : "1366389453" }} ]}}
According to the Mongo doc this should work.
The examples given in the Mongo Input wiki do not really explain what needs to be quoted and what does not?
Has there been any better documentation recently?
Any help to get these working would be great!
Thanks,
I am trying to do delta extract of mongo data based on a timestamp (epoch) field. The examples given do not really cover this and I have tried several permutations. The current example I treid is :-
{ "$query" : { "rating.addedTimestamp" : { $gte : "1366387401" }}}
I am also trying to use $or :-
{ "$query" : { $or : [{"rating.addedTimestamp" : { $gte : "1366389453" }},{"rating.updatedTimestamp" : { $gte : "1366389453" }} ]}}
According to the Mongo doc this should work.
The examples given in the Mongo Input wiki do not really explain what needs to be quoted and what does not?
Has there been any better documentation recently?
Any help to get these working would be great!
Thanks,