Making Fields Queryable Not in Schema
TLDR Ailish asks how to make fields queryable that are not in the schema, while Kishore Nallan suggests using auto schema detection and wildcards in version 0.25 RC for their needs.
Apr 24, 2023 (5 months ago)
Ailish
06:25 AMKishore Nallan
06:33 AMAilish
03:03 PMquery_by
?Kishore Nallan
03:13 PMfoo*
in query_by to match foobar
or foobuzz
Typesense
Indexed 2779 threads (79% resolved)
Similar Threads
Handling Unknown Fields in Search Query Schema
Adrian faced an issue when an unknown field disrupted search queries. Jason informed them that Typesense must validate all fields before filtering and suggested preemptively including these fields as optional in the schema.
Usage and Modification of Dynamic Routes in Typesense Documents
Ethan needed a way to perform exact queries through two fields in Typesense documents. Kishore Nallan demonstrated its possibility using the "filter_by". An issue was resolved via recommending that fields in 'query by' should be a string type.
Updating Collection Schema and Querying Unspecified Fields in Typesense
Stefan asked about updating a collection schema. Kishore Nallan stated it's not currently possible but suggested automatic schema detection in version 0.20. Rishabh sought a workaround and Jason suggested creating a new collection with a new schema and re-indexing the data. Rishabh also asked about defining custom field IDs which Jason confirmed is not possible with Typesense.