Hey all, the nested field stuff is looking great! ...
# community-help
t
Hey all, the nested field stuff is looking great! However, I’m struggling to use them in filter conditions when nested in arrays. I was wondering if there was support for wildcards in array style searches, similar to a “some” check in SQL For example, if I have this schema:
Copy code
const schema: CollectionFieldSchema[] = [
  {
    name: 'topLevelField',
    type: 'object[]',
    facet: true,
  },
  {
    facet: true,
    name: 'topLevelField.nestedField',
    type: 'int32',
  },
];
And I have an entry with this shape:
Copy code
{ topLevelField: [{ nestedField: 3 }, { nestedField: 5}]}
How can I filter that 5 is in the nestedField list?
j
I was wondering if there was support for wildcards in array style searches, similar to a “some” check in SQL
Typesense doesn’t support wild-cards in filter values
How can I filter that 5 is in the nestedField list?
filter_by: topLevelField.nestedField:=5
should work…
If that doesn’t work, could you replicate the issue using this snippet and some sample data?
t
@Jason Bosco - Thanks as always for the quick turnaround, and if I hit any issues trying that I’ll follow the template. Thank you sir!
👍 1
@Jason Bosco - That syntax worked perfectly. Thank you!
👍 1