Sandip
08/12/2023, 6:28 AMKishore Nallan
08/13/2023, 8:14 AMobject
field which can contain different keys.
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.Sandip
08/14/2023, 5:10 AMKishore Nallan
08/14/2023, 5:18 AMSandip
08/14/2023, 5:20 AM