I have 2 indices defined on the same collection for which 1 includes the new documents I have written and the other does not. The index with missing data includes a term for matching by an id.
Index 1 (missing data):
{
name: "garden_metrics_by_garden_ts_desc",
unique: false,
serialized: true,
source: "garden_metrics",
terms: [
{
field: ["data", "garden"]
}
],
values: [
{
field: ["data", "insertedAt"],
reverse: true
},
{
field: ["ref"]
}
]
}
Index 2:
{
name: "garden_metrics_ts_desc",
unique: false,
serialized: true,
source: "garden_metrics",
values: [
{
field: ["data", "insertedAt"],
reverse: true
},
{
field: ["ref"]
}
]
}