Björn Hurling
11/15/2024, 9:40 AMcontacts-2024-10-10
collection with about 25k records and a contacts
alias pointing to it.
I also have an empty packages-2024-11-15
collection with a packages
alias pointing to it.
I now want to add a contactId
field inside packages-2024-11-15
that references contacts
{
"fields": [
{
"name": "contactId",
"type": "string",
"reference": "contacts.id"
}
]
}
As per the docs it should be possible to use aliases in those fields.
The first issue I have is that contactId
never shows up in the final schema. There does seem to be something hidden, though. If I now try to index my first package (with a valid contactId
), I am getting the error message
"Request failed with HTTP code 400 | Server said: Field `contactId_sequence_id` has been declared in the schema, but is not found in the document."
Obviously, I am not setting that contactId_sequence_id
field myself when sending a document. Isn't that supposed to happen automatically? I currently have to manually drop that contactId_sequence_id
field from the schema to be able to at least index my packages without foreign keys. What am I missing here?
Thank you for your helpBjörn Hurling
11/15/2024, 9:56 AMKishore Nallan
11/15/2024, 10:00 AMBjörn Hurling
11/15/2024, 10:01 AMBjörn Hurling
11/15/2024, 10:02 AMKishore Nallan
11/15/2024, 10:03 AMBjörn Hurling
11/15/2024, 10:04 AM