What's the Lucene equivalent of KQL query: now/d

Hi

I'm trying to filter my data based on a date field to show me everything for today, in Kibana I can use the KQL query using now/d but I need the equivalent for Lucene, any help? I wouldve thought it'd be the same but it doesnt seem to work

Hi @ykara84

welcome back to the Kibana community.
Based on this answer I think you could have something like: my_field: [now/d TO *]

1 Like

doesnt seem to work:

That is because the query left an open range on the right. Limiting that to now/d will fix the range to a single day: my_field: [now/d TO now/d]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.