Querying Date Range Data Type

Hey guys,

Very basic question. I have a date-range mapping for a field with gte : 7pm and lte :10pm (in epoch_millis) for example. I want to make a query that looks at the current server time (with now) and will return the example doc is now is between gte and lte. I'm having trouble with this. Is this not how you are supposed to use a date range type? Would I be better suited breaking my field into two fields, start_time and end_time, then doing a range query on those two fields?

Hi @ajohnson10209

You can check here about an example:

If you post an example of your data and what you tried so far we may provide more help.

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