compass.pipeline.search.persistence.load_search_shards#

load_search_shards(out_dir, jurisdictions, expected_tech)[source]#

Inventory individual requested shards

Parameters:
  • out_dir (path-like) – Existing search output directory.

  • jurisdictions (Iterable of Jurisdiction) – Jurisdictions requested in the current configuration.

  • expected_tech (str) – Required technology when saved outputs declare one.

Returns:

dict – FIPS codes mapped to dictionaries with record and path. Missing shards have no entry.