Change in Handling `id` in Schema from Version v0.22.0
TLDR Ignacio asked about a recent change. Jason clarified that from version v0.22.0, 'id' is ignored in the schema, suggesting to use 'filter_by' instead.
Powered by Struct AI
1
3
23mo
Solved
Dec 22, 2021 (23 months ago)
Ignacio
Ignacio
09:49 PMWas there a change around it?
Jason
Jason
09:51 PMYeah,
id
is a special field since it has to be a string and from v0.22.0 if it's present in the schema it's just ignored. You would have to use filter_by to get a document by id instead of qIgnacio
Ignacio
09:51 PMthanks.
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2786 threads (79% resolved)
Similar Threads
'id' Field Ignored in Typesense v0.22.1
Nader reported an issue with the `id` field in Typesense v0.22.1. Kishore Nallan clarified it was a change in the version, directing to the corresponding document.
3
22mo
Solved
Resolving TS Issue on Id Field and Search Results
Mubashirullah had issues getting the 'id' field from their schema, which Kishore Nallan explained was due to it being a special identifier in TS 0.22. They recommended creating a 'searchable_id' field.
9
23mo
Solved
Query on Updating Document's ID Field
Mehdi inquired about updating a document's `id` field. Kishore Nallan explained it's a special field and couldn't be updated, and suggested tracking this proposal through a GitHub issue.
4
27mo
Solved