Chandar Venkata Rama
10/24/2024, 3:58 PM{
"name": "attributevalue",
"type": "float",
"sort": true,
"optional": true
},
But after that when i fetch the data , i see it in double quotes in typesense, i believe it should be 0.06498
rather than "`0.06498`"
"attributevalue": "0.06498",
Due to this sort is not working as expected .
Jason Bosco
10/24/2024, 8:03 PMChandar Venkata Rama
10/27/2024, 2:58 PMcurl "<http://localhost:8108/collections>" \ -X POST \ -H "Content-Type: application/json" \ -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \ -d '{ "name": "companies", "fields": [ {"name": "company_name", "type": "string" }, {"name": "num_employees", "type": "int32" }, {"name": "country", "type": "string", "facet": true } ], "default_sorting_field": "num_employees" }'
I get the error message that
"message": "A collection with name `companies` already exists."
3) When i create a new entry using curl
curl "http://localhost:8108/collections/companies/documents/import?action=create" \
it creates the new entry in float formatJason Bosco
10/28/2024, 8:02 PMChandar Venkata Rama
10/29/2024, 5:50 AMJason Bosco
10/29/2024, 6:48 PMJason Bosco
10/29/2024, 6:49 PMChandar Venkata Rama
10/31/2024, 3:41 AMChandar Venkata Rama
10/31/2024, 3:41 AM