This message was deleted.
# community-help
s
This message was deleted.
m
But, when I query for a nested field, I get this error:
Copy code
curl .../v1/search -d '{"filter_by": "bits.resolved := true"}' -s | jq
{
  "results": [
    {
      "code": 400,
      "error": "Could not find a filter field named `bits.resolved` in the schema."
    }
  ]
}
If I were to clear out my TS data, and re-generate it, then it would work.
The
"enable_nested_fields": true,
is new, I added it today.
Any way by which I don't need to clear out TS data, and make this work?
k
Are you saying that when you create a collection and index data, at first, the query does not work but if you delete the data in the collection and index docs again, the query works the second time?
m
Yes. If the data is already there, and I change the schema, then it doesn't work; even if I re-index a few docs.
k
The
"enable_nested_fields": true,
is new, I added it today.
Just to clarify the above: did you add the
enable_nested_fields
later on via alter or was it already part of the schema when you created the collection?
m
I added that like y'day. I already had TS running for a while now.
k
We don't actually allow nested fields to be enabled on an existing collection via alter. You will get an error like this:
Copy code
{"message": "Only `fields` can be updated at the moment."}%
It's best if you can reproduce the issue with some curl commands that I can run and check directly. That will be the fastest way to fix any lurking bugs.