This message was deleted.
# community-help
s
This message was deleted.
j
You want to make sure you have “enable_nested_fields: true” in the schema
If you already have that, could you share a full curl command that creates the collection and the error you see?
o
Thanks for quick reply. I get
Server said: Field
sources.content
has an incorrect type. Hint: field inside an array of objects must be an array type as well.
Don’t have curl atm ,just editing in cluster UI
Perhaps, I defined the sources as
object
instead of
object[]
.Let me try
That was it. This works.
Copy code
{
      "facet": false,
      "index": false,
      "name": "sources",
      "optional": true,
      "type": "object[]"
},
{
      "facet": false,
      "index": true,
      "name": "sources.content",
      "optional": true,
      "type": "string[]"
}
Noticed how the type for
sources.content
needs to be in
string[]
j
Ah yes! If you have an array of objects, then subfields would also be an array