Hi there. We defined a schema like this: ```{ na...
# community-help
r
Hi there. We defined a schema like this:
Copy code
{
  name: 'collections',
  fields: [
    {
      name: 'collection_name',
      type: 'string[]',
      facet: true,
    },
    {
      name: 'id',
      type: 'string',
      facet: false,
    },
  ],
}
I’ve populated it with data. And when i try to search anything like:
Copy code
{
  q: 'a',
  query_by: 'collection_name',
  num_typos: 0,
}
or any other letter, i get no results. Do you have any idea why?
k
id is a special field so should not be part of schema. In the next version we have added some guard for this.
r
Ok, but thats not the problem we have. Id is not the problem. If we transform the field from string[] to string, everything works as intended.
k
Can you please post a minimal reproduceable example? Does it happen even with a couple of simple records?
Just tried with a simple example and it works for me. If you can give me a full reproduceable example, I will be happy to dig into it.