I have a data portal setup with search related to nature photographs. My metadata structure is a bit complicated now. All images that meet a certain threshold will capture
location, date, end detection category. Those are stored under one entry id. In addition, any image with an animal, then has another metadata entry (with a unique entry id) that contains the animal species. The reason animal species is separate is for cases where there are multiple species in the same image.
So most of the metadata I want to add facets for is in entries[0], but the classification info is in entries[1]. I changed my static.json to be:
"components": {
"Result": {
"heading": "subject",
"fields": [
{
"label": "Location",
"property": "entries[0].content.location"
},
{
"label": "Detections",
"property": "entries[0].content.detection_category"
},
{
"label": "Classifications",
"property": "entries[1].content.classification_category"
},
{
"label": "Image Date",
"property": "entries[0].content.img_date"
}
]
}
},
But none of the classification categories show up in my facet. I can search based on species but I was hoping to have a facet with those categories (there's only really a handful of species in our data). Here is an example of the raw result for an image with a classification category
{
"@datatype": "GMetaResult",
"@version": "2019-08-27",
"subject": "/OUTPUT_TONY/STA_25_2_CSTA007/102EK113/12250316.JPG",
"entries": [
{
"content": {
"location": "Stager",
"location_shorthand": "STA",
"detection_category": "Animal",
"img_date": "2024-12-25"
},
"entry_id": "detection_info",
"matched_principal_sets": []
},
{
"content": {
"classification_category": "White-tailed Deer"
},
"entry_id": "classification_0",
"matched_principal_sets": []
}
]
}
Any guidance on getting this facet showing categories would be greatly appreciated. Thank you