[Search] Improvements to DefaultCatalogCollator (#5491)

* Add owner/lifecycle to default catalog document and allow location to be configured by integrators.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* Test the DefaultCatalogCollator

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>

* Changeset.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-04-29 11:38:21 +02:00
committed by GitHub
parent 12cbc6a4af
commit a99e0bc42c
4 changed files with 128 additions and 7 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export default async function createPlugin({
indexBuilder.addCollator({
type: 'software-catalog',
defaultRefreshIntervalSeconds: 600,
collator: new DefaultCatalogCollator(discovery),
collator: new DefaultCatalogCollator({ discovery }),
});
const { scheduler } = await indexBuilder.build();