Just updated to 26.0 and tried creating a collecti...
# community-help
j
Just updated to 26.0 and tried creating a collection with metadata following the example in the documentation:
Copy code
{
  "name": "docs",
  "enable_nested_fields": true,
  "fields": [
    {
      "name": "title",
      "type": "string",
      "facet": true
    }
  ],
  "metadata": {
    "batch_job": 325,
    "indexed_from": "2023-04-20T00:00:00.000Z"
  }
}
However this metadata doesn't get returned in
GET /collections
like the documentation suggests:
Copy code
[
    {
        "created_at": 1714483719,
        "default_sorting_field": "",
        "enable_nested_fields": true,
        "fields": [
            {
                "facet": true,
                "index": true,
                "infix": false,
                "locale": "",
                "name": "title",
                "optional": false,
                "sort": false,
                "stem": false,
                "type": "string"
            }
        ],
        "name": "docs",
        "num_documents": 0,
        "symbols_to_index": [],
        "token_separators": []
    }
]
Anyone know why this might be? Relevant documentation: https://typesense.org/docs/26.0/api/collections.html#adding-metadata-to-schema
Looks like this might be a bug, I've raised https://github.com/typesense/typesense/issues/1699.
k
🤦 Yes, this is a bug. Will fix and post an update on the thread.