Skip to content

Some records generate a huge references field #10

Open

Description

@thatbudakguy

These records have so many references that trying to index them into solr throws an error.

An example is "Mali Acute Food Insecurity Classification" (hdx-4473e8b8…). Its dct_references_s is 92,710 bytes:

  • schema.org/url: one link to the HDX landing page.
  • geojson-spec: one GeoJSON link.
  • schema.org/downloadUrl: 432 entries, about 94 KB. This is the problem.

The HDX source record also has 432 resources: 149 PNG, 149 KML, 67 zipped shapefiles and 67 GeoJSON. FEWS NET publishes a set of maps for each analysis period going back years (current situation plus near-term and medium-term projections). The harvester turns every file from every period into its own download link.

Overall, 25 of 12,628 records are over the limit. The median references field is only 366 bytes, so these are extreme outliers.

  • 24 are "… Acute Food Insecurity Classification" records with 180–484 links each.
  • The largest are Malawi and Kenya at about 103 KB with 484 links.
  • The other one is a Copernicus EMS wildfire activation (EMSR922).

FEWS NET adds files every period, so these records keep growing and more will likely cross the limit.

In GeoBlacklight's solr schema, *_s fields are string with indexed="true". A string field is indexed as one whole value, and Lucene's maximum size for that is 32,766 bytes. Anything bigger is rejected.

Each bad record also slows the run. GeoCombine sends records in batches of 100, and when a batch fails it retries all 100 one at a time. This happens ~20 times for an institutions trying to index from this repo right now.

Activity

  1. added theissue type on Oct 6, 2026
  2. thatbudakguy commented on Oct 6, 2026

    @thatbudakguy
    MemberAuthor

    Notably, this wouldn't be an issue if we didn't index the value of the references field, as an unintended consequence of the suffix in its name. We need to store it, but nothing in GeoBlacklight actually searches on it (and the fact that it is searchable is a bug).

    Unfortunately solving this problem the right way probably needs to wait until the next major schema version.

  3. thatbudakguy commented on Nov 20, 2026

    @thatbudakguy
    MemberAuthor

    The FEWS restructuring that happened in 8c16272 mostly resolved this, but there's currently still one record over the limit – the Copernicus EMSR922 one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions