#community-help

Defining a Database Collection

TLDR Zachary asked if all fields need to be specified when defining a collection. Kishore Nallan clarified that only fields want to be indexed need to be specified.

Powered by Struct AI
+11
3
14mo
Solved
Join the chat
Jul 28, 2022 (14 months ago)
Zachary
Photo of md5-5f04183984c8ae83c8715a074dd4c473
Zachary
03:45 AM
Hey everyone, I’m trying to set up my first collection. My question is: When I am defining a collection, do I need to specify all fields or only the ones I want to index? eg. I have a number of thumbnails (width, height, url) that I would like to retrieve with the document, but don’t need to index, if they are not indexed will they still be stored
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
03:49 AM
Only fields you want to search needs to be on the schema. Other fields can be present on the document -- they will be stored on disk and retrieved.
Zachary
Photo of md5-5f04183984c8ae83c8715a074dd4c473
Zachary
03:49 AM
Awesome - thank you Kishore!
+11