@Dima Date ranges work fine for OpenSearch, everything is just pass-through. so something like:
{
"_source": ["content", "metadata.general__rating"],
"query": {
"range": {
"metadata.general__rating": {
"gt": "2022-11-20T16:45:00"
}
}
}
}
would be :
meta_filter = MetadataFilters(
filters=[
ExactMatchFilter(
key="range",
value='{"metadata.general__rating": {"gt":"2022-11-20T16:45:00"}}'
)
]
)
however note that I don't see any way at present to prefilter the output keys, you get 'everything' back since there is nowhere to put the '_source' component. This requires an alternative ExactMatchFilter; I'd just make a 'PassThroughMatchFilter' instead