Hello, Is it possible to search facets? My structu...
# community-help
z
Hello, Is it possible to search facets? My structure is
Copy code
"attributes": [
          {
            "name": "color",
            "value": "black"
          },
]
//part of schema
    {"name": "attributes", "type": "object[]", "index": true, "optional": true },
    {"name": "attributes.name", "type": "string[]", "index": true, "facet": true, "optional": true },
    {"name": "attributes.value", "type": "string[]", "index": true, "optional": true, "facet": true }
So i want to get all available facet values for attributes.value given the
attributes.name:color
. Basically i want to get all colors per query as it has
q
and
filter_by
already taken by search. I tried
facet_query
but it only searches one instance and using
facet_return_parent
will return all attributes but only for one object.