Adam Berkowitz
03/09/2023, 7:44 PMobject
as the type on a field. I’m using typesense 0.24 on docker. even when I try copying and pasting the second`curl` example, the server errors and tells me I have “bad json”.Jason Bosco
03/09/2023, 7:46 PMAdam Berkowitz
03/09/2023, 7:46 PMAdam Berkowitz
03/09/2023, 7:49 PMAdam Berkowitz
03/09/2023, 7:52 PMauto
indexed field, the collection is created successfullyJason Bosco
03/09/2023, 7:53 PMJason Bosco
03/09/2023, 7:53 PMJason Bosco
03/09/2023, 7:54 PMcurl -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": "person", "type": "object"},
{"name": "details", "type": "object[]"}
]
}'
Adam Berkowitz
03/09/2023, 7:54 PMJason Bosco
03/09/2023, 7:54 PM"object[]"},
, which is wrongAdam Berkowitz
03/09/2023, 7:54 PMAdam Berkowitz
03/09/2023, 7:56 PMts
file. I just have a habit of adding trailing commas to objects. that must be messing up the JSON object sent to the server. I’ll try removing them and see what happensJason Bosco
03/09/2023, 7:59 PMJason Bosco
03/09/2023, 8:00 PMAdam Berkowitz
03/09/2023, 8:00 PMAdam Berkowitz
03/09/2023, 8:01 PMAdam Berkowitz
03/09/2023, 8:01 PMJason Bosco
03/09/2023, 8:01 PMAdam Berkowitz
03/09/2023, 8:03 PMAdam Berkowitz
03/09/2023, 8:08 PMJason Bosco
03/09/2023, 8:09 PMAdam Berkowitz
03/09/2023, 8:11 PMAdam Berkowitz
03/09/2023, 10:47 PMsort
to true. I had accidentally changed the type to object
but overlooked removing the sort
property