How can I drop message between timestamp hour through pipeline?

I tried something like I saw here:

rule “Pipeline on Timing”
when
to_long(to_date($message.timestamp).hourOfDay) >= 0 && to_long(to_date($message.timestamp).hourOfDay) <= 2
then
set_field(“Pipeline_Triggered_Condition”, true);
end

But when I try to filter in search, it returns nothing.

Application: OurApp AND source: customer AND Pipeline_Triggered_Condition: true;

False returns nothing too.