This message was deleted.
# community-help
s
This message was deleted.
k
You could have an
object
field which can contain different keys.
Copy code
curl -k "http://localhost:8108/collections" -X POST -H "Content-Type: application/json" \                                                                                                                        
      -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" -d '{
        "name": "docs", "enable_nested_fields": true,
        "fields": [
          {"name":"custom","type":"object"}
        ]
      }'
In the example above you can index a sub-field under the custom object and then during querying you just need to mention
query_by=custom
instead of specifying the child fields explicitly. We will search on the child fields on the
custom
object automatically.
s
object type not listed in Typesense doc.
s
Thanks @Kishore Nallan 🙂