Ah found it in a GH issue: ```When you search on ...
# community-help
m
Ah found it in a GH issue:
Copy code
When you search on an object field name, all sub-fields will be automatically searched. Use a dot notation to refer to sub-fields, e.g. person.last_name or person.school.name.
@Kishore Nallan @Jason Bosco ^ maybe add that to the query_by docs ^^
k
Will do!
m
On that note, can a field inside of an object array be used for facetting?
k
Yes that should be possible. Let me know if it does not work.
m
I don't really find documentation on how to configure that either. you have the
facet => true
thing on a field, but how to tell the facet, that it should only facet e.g. the category title in an objectarray of categories, and not the category description?
k
facet_by=category.title
Instead of defining
facet => true
on the parent object/object array, define a field specifically with dots in the name e.g.
foo.bar.baz
and set that to
facet => true
m
so you'd create simply e.g.:
Copy code
address = object
and then
Copy code
address.county.title = string
In the TS structure if I get this correctly?
k
Correct
m
Thank you very much!