Implementing ID Field Search in Schema
TLDR Jason asked John for a simpler way to implement search by ID, who confirmed the current method is still the best approach.
Powered by Struct AI

4
8mo
Solved
Jan 09, 2023 (8 months ago)
John
John
07:44 PMHey, how are you all? Happy new year!
Jason: could you remind me how we implement a search by the id field? Is there a simpler way than adding a field to the schema and copy the id in that field?
Jason: could you remind me how we implement a search by the id field? Is there a simpler way than adding a field to the schema and copy the id in that field?
Jason
Jason
07:45 PMHappy New Year!
07:45
Jason
07:45 PMThat’s still the way to do it
John
John
07:45 PMOK, thank you then!

Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2764 threads (79% resolved)
Similar Threads
Adding ID Field to Index and Schema Retrospectively
Zach asked about adding an ID field in the schema without altering existing documents. Jason suggested creating a new field called `id_search` for this purpose.

2
3mo
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
25mo
Solved
Understanding Collection Schema in Database Queries
em1nos needed clarification on the function of schemas in database collections, Jason confirmed that schema is for searching, and filtering purposes, and discussed the usage of include/exclude_fields parameters.
4
26mo
Solved