I have created an Index of events with terms for an event type and a day on which that event occurred (binding). The collection has quite some documents, around 13.000.
The results come in correctly for dates prior to creating the index, but no results are shown for the date of today. While the data is present in the collection, so I would expect to see those results come back as well.
What could be the issue here?
Index used:
{
ref: Index("event_value_by_type_and_day"),
ts: 1662133101695000,
active: true,
serialized: true,
name: "event_value_by_type_and_day",
source: {
collection: Collection("events"),
fields: {
eventValueNumber: Query(
Lambda(
"document",
ToDouble(Select(["data", "eventValue"], Var("document")))
)
),
day: Query(
Lambda(
"document",
ToDate(Epoch(Select("ts", Var("document")), "microsecond"))
)
)
}
},
terms: [
{
field: ["data", "event"]
},
{
binding: "day"
}
],
values: [
{
binding: "eventValueNumber"
}
],
partitions: 1
}
Document that should show up, but doesn’t
{
"ref": Ref(Collection("events"), "341768519209189969"),
"ts": 1662194708960000,
"data": {
"event": "TEMP",
"eventValue": "18.5",
}
}