I have a Forms
collection that has, amongst other fields, the fields accountId
and id
which is identical to the actual document id.
I have created this index:
{
name: "forms_by_accountId_and_id",
unique: false,
serialized: true,
source: "Forms",
terms: [
{
field: ["data", "accountId"]
},
{
field: ["data", "id"]
}
],
values: [
{
field: ["data"]
}
]
}
and also this one:
{
name: "forms_by_accountId_and_id_",
unique: false,
serialized: true,
source: "Forms",
terms: [
{
field: ["data", "accountId"]
},
{
field: ["ref", "id"]
}
],
values: [
{
field: ["data"]
}
]
}
When I paste some values in the dashabord on either of these Indexes I get no results.
I have tripple-checked that the values are correct.
I actually copy-paste them from a document that I get from the Collection tab, so it is there for sure.
Other indexes work properly.
p.s.
The first index is new. I created it after I noticed that the second one does not work, so I renamed it by adding _
and created the new one that uses the id
from the data rather than from the ref.
Any ideas?