typesense / typesense

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Home Page:https://typesense.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modify attribute like enabled_nested_fields on existing collection

johnschatner opened this issue · comments

commented

Description

I have a collection where I'd like to change the false value to true on key "enable_nested_fields"

Steps to reproduce

curl "https://localhost/collections/recipes"
-X PATCH
-H "Content-Type: application/json"
-H "X-TYPESENSE-API-KEY: ..."
-d '{
"enable_nested_fields": true,
}'

Expected Behavior

Change the boolean to specified value.

Actual Behavior

Server returns:
{"message": "Bad JSON."}

Metadata

Typesense Version: 0.25.2

OS: typesense-deb package

Yes we should support this.