Hey folks,
I’m trying to create the following index:
CreateIndex({
name: "logs_by_createdAt_date",
source: Collection("logs"),
fields: {
date: Query(Lambda("doc", Format("%F", Select(["data", "createdAt"], Var("doc")))))
},
terms: [{ binding: "date" }]
})
But looks like it is not working. The output is not showing the fields value:
{
ref: Index("logs_by_createdAt_date"),
ts: 1640888137600000,
active: false,
serialized: true,
name: "logs_by_createdAt_date",
source: Collection("logs"),
terms: [
{
binding: "date"
}
],
partitions: 1
}
Thoughts? Thanks in advance!