Data portal facet question

1 view
Skip to first unread message

Anthony Weaver

unread,
Jan 23, 2026, 11:03:44 AMJan 23
to Discuss
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

Joe Bottigliero

unread,
Jan 23, 2026, 11:39:18 AMJan 23
to Anthony Weaver, Discuss
With the provided snippet from your static.json, that component configuration should just change what fields are displayed on the individual result pages – is that where you are not seeing the information?

For a facet configuration (that translates to UI filter), I would expect something like the following to work:

{
//...
"globus": {
"search": {
"index": "<INDEX_UUID>",
"facets": [
{
"name": "Classifications",
"field_name": "classification_category",
"type": "terms",
"size": 10
},
]
}
}
}


If it's still giving you trouble with this change feel free to email directly and I can take a closer look at your static.json file! 

Best,
Joe

Anthony Weaver

unread,
Jan 23, 2026, 12:45:01 PMJan 23
to Joe Bottigliero, Discuss
Joe,

Thank you.  The trouble was indeed related to the field name and my poor ability to type category and not category

Tony
Reply all
Reply to author
Forward
0 new messages