ReadonlytypeThe type or name of the document set returned by this collator. Used as an index name by Search Engines.
ReadonlyvisibilityThe @backstage/plugin-permission-common#Permission that controls visibility of resources associated with this collator's documents.
Instantiates and resolves a document collator.
StaticfromReturns a NewlineDelimitedJsonCollatorFactory instance from configuration and a set of options.
Factory class producing a collator that can be used to index documents sourced from the latest newline delimited JSON file matching a given search pattern. "Latest" is determined by the name of the file (last alphabetically is considered latest).
Remarks
The reader provided must implement the
search()method as well as thereadUrlmethod whose response includes thestream()method. Naturally, the reader must also be configured to understand the given search pattern.Example
Here's an example configuration using Google Cloud Storage, which would return the latest file under the
bucketGCS bucket with files likexyz-2021.ndjsonorxyz-2022.ndjson.