Replies: 1 comment 4 replies
-
Hello @elyor0701, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi, everybody. I had some trouble with filtering documents by array of objects.
I have document with field structure like that:
.
First request
Req:
{ "q": "", "filter": "subcategories.num_id=62 AND is_available=available", "limit": 1, "offset": 0, "attributesToRetrieve": [ "name", "num_id", "attributes.id" ], "facets": [ "attributes.id" ] }
Resp:
{ "facetDistribution": { "attributes.id": { ... "07d17edc-c4a2-411b-bcdc-13a660fed706": 1 ... } } }
Second Request
Req:
{ "q": "", "filter": "subcategories.num_id=62 AND is_available=available AND attributes.id=07d17edc-c4a2-411b-bcdc-13a660fed706", "limit": 1, "offset": 0, "attributesToRetrieve": [ "name", "num_id", "attributes.id" ], "facets": [ "attributes.id" ] }
Resp:
{ "estimatedTotalHits": 5, "facetDistribution": { "attributes.id": { "07d17edc-c4a2-411b-bcdc-13a660fed706": 4 } } }
3 different documents count, how is this possible?
PS: pkgVersion: 1.6.2
Beta Was this translation helpful? Give feedback.
All reactions