I’ve a sample document in the following format:
{
"_id": "600dbf319608f73b21723cc7",
"Name": "NERA",
"Type": "Outdoor",
"Description": "NERA",
"seotags": "NERA, outdoor light",
"slug": "NERA",
"published_at": "2021-01-24T18:41:01.262Z",
"Content": [
{
"__component": "meta.meta-test",
"_id": "600dbf319608f73b21723cc8",
"MetaTest": [
{
"_id": "600dbf319608f73b21723cdc",
"MetaValue": "66*100mm",
"__v": 0,
"meta": {
"_id": "5fca68b34d492830a24b279d",
"MetaName": "DIA/LXB",
"published_at": "2020-12-04T16:49:58.753Z",
"createdAt": "2020-12-04T16:49:55.775Z",
"updatedAt": "2020-12-04T16:49:58.945Z",
"__v": 0,
"created_by": "5fbbea34532d4c4c161ae7d9",
"updated_by": "5fbbea34532d4c4c161ae7d9",
"id": "5fca68b34d492830a24b279d"
},
"id": "600dbf319608f73b21723cdc"
},
{
"_id": "600dbf319608f73b21723cdd",
"MetaValue": "278mm",
"__v": 0,
"meta": {
"_id": "5fca68c84d492830a24b279e",
"MetaName": "HEIGHT",
"published_at": "2020-12-04T16:50:20.419Z",
"createdAt": "2020-12-04T16:50:16.352Z",
"updatedAt": "2020-12-04T16:50:20.608Z",
"__v": 0,
"created_by": "5fbbea34532d4c4c161ae7d9",
"updated_by": "5fbbea34532d4c4c161ae7d9",
"id": "5fca68c84d492830a24b279e"
},
"id": "600dbf319608f73b21723cdd"
},
{
"_id": "600dbf319608f73b21723cde",
"MetaValue": "NA",
"__v": 0,
"meta": {
"_id": "5fca68d94d492830a24b279f",
"MetaName": "CUTOUT",
"published_at": "2020-12-04T16:50:36.371Z",
"createdAt": "2020-12-04T16:50:33.255Z",
"updatedAt": "2020-12-04T16:50:36.561Z",
"__v": 0,
"created_by": "5fbbea34532d4c4c161ae7d9",
"updated_by": "5fbbea34532d4c4c161ae7d9",
"id": "5fca68d94d492830a24b279f"
},
"id": "600dbf319608f73b21723cde"
}
],
"__v": 1,
"id": "600dbf319608f73b21723cc8"
},
{
"__component": "product.cutout",
"Images": [
{
"_id": "600dbf089608f73b21723cc4",
"name": "24-NERA_CS5-copy-2-cutout.jpg",
"alternativeText": "",
"caption": "",
"hash": "24_NERA_CS_5_copy_2_cutout_9ce6d6fa1e",
"ext": ".jpg",
"mime": "image/jpeg",
"size": 16.93,
"width": 611,
"height": 478,
"url": "24_NERA_CS_5_copy_2_cutout_9ce6d6fa1e.jpg",
"formats": {
"thumbnail": {
"name": "thumbnail_24-NERA_CS5-copy-2-cutout.jpg",
"hash": "thumbnail_24_NERA_CS_5_copy_2_cutout_9ce6d6fa1e",
"ext": ".jpg",
"mime": "image/jpeg",
"width": 199,
"height": 156,
"size": 3.64,
"path": null,
"url": "thumbnail_24_NERA_CS_5_copy_2_cutout_9ce6d6fa1e.jpg"
},
"small": {
"name": "small_24-NERA_CS5-copy-2-cutout.jpg",
"hash": "small_24_NERA_CS_5_copy_2_cutout_9ce6d6fa1e",
"ext": ".jpg",
"mime": "image/jpeg",
"width": 500,
"height": 391,
"size": 12.51,
"path": null,
"url": "small_24_NERA_CS_5_copy_2_cutout_9ce6d6fa1e.jpg"
}
},
"provider": "aws-s3",
"related": ["600dbf319608f73b21723cca"],
"createdAt": "2021-01-24T18:40:08.946Z",
"updatedAt": "2021-01-24T18:40:49.792Z",
"__v": 0,
"created_by": "5fbbea34532d4c4c161ae7d9",
"updated_by": "5fbbea34532d4c4c161ae7d9",
"id": "600dbf089608f73b21723cc4"
}
],
"_id": "600dbf319608f73b21723cca",
"Title": "nera-cutout",
"__v": 0,
"id": "600dbf319608f73b21723cca"
}
]
}
The searchable attributes I’ve in my configuration are:
- Name
- Content.MetaTest.meta.MetaName,Content.MetatTest.MetaValue
I would like to trigger a search query cutout 100mm
. Now algolia matches
- MetaName - DIA/LXB which has MetaValue 66*
100mm
- MetaName -
CUTOUT
which has MetaValueNA
- Then finally the product.
cutout
in__component
.
However I would like to select a document which has MetaName
as CUTOUT
and it’s value has 100mm
.
Tried changing various configurations, however unable to find. Please guide.