am I correct in understanding that it is not possi...
# community-help
r
am I correct in understanding that it is not possible to search by id of documents in a collection?
f
Id is a special field in Typesense and you can't search by it, correct
r
so I'd basically have to create a copy of it to be able to search by it?
f
Yes
k
You can filter on it though. One of those annoying things we need to fix soon. Sorry!
r
I need partial matches though, so I'll create a copy of it for now
j
Correct
r
sigh. I updated all documents with the identifier, but trying to update the schema now results in `Error: 400 - Field
identifier
should be a string or a string array.` while it is always an integer 😞
guess I have to create a new collection from scratch
which is weird cause https://cloud.typesense.org/clusters/ID/collections/order/documents/add uses an integer in the prefilled template
k
What's the type of the field you update the document with and what type are you trying to create via schema change?
r
its an integer, but i think now maybe i should have forced it to be a string 😞
the error was related to the search preset, not the collection update
i just figured that out
👍 1
i thought we could use . in version for collection name, so e.g. collection_1.0.0
but then if we reference this from another collection that ends up being 'collection_1.0.0.id' .. i guess that would cause issues?
k
Better to avoid dots in the collection name.
r
roger. is it possible to point an alias at an alias btw?
k
🤔 I think we have an validation that the name is an actual collection.
r
no problem, makes sense