@studyportals/fawkes 8.7.2-24 → 8.7.2-25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@ export class RankedCountryDiscipline extends RankedOrganisationsSeoIndexabilityP
|
|
|
21
21
|
const countryFragments = CountryPresenter.getInstance().getFragments();
|
|
22
22
|
const disciplineFragments = DisciplinePresenter.getInstance().getFragments();
|
|
23
23
|
const paths = [];
|
|
24
|
-
const concurrencyLimit =
|
|
24
|
+
const concurrencyLimit = 10; // Process 10 combinations concurrently
|
|
25
25
|
// Create all combinations
|
|
26
26
|
const combinations = countryFragments.flatMap(country => disciplineFragments.map(discipline => ({ country, discipline })));
|
|
27
27
|
// Process in batches to respect API rate limits
|
|
@@ -18,19 +18,8 @@ export class MinimumAmountOfRankedResultsRule {
|
|
|
18
18
|
const filterKeys = [...filterKeyValues.keys()];
|
|
19
19
|
throw new DependencyMissingError(`CountwithRankings ${filterKeys.join(',')}`);
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
try {
|
|
24
|
-
const rankedResultsCount = await this.searchApiClient.getCountWithRankings(filterKeyValues);
|
|
25
|
-
// eslint-disable-next-line no-console
|
|
26
|
-
console.debug('MinimumAmountOfRankedResultsRule: Ranked results count:', rankedResultsCount);
|
|
27
|
-
return rankedResultsCount >= this.minimumRankedResultsCount;
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
// eslint-disable-next-line no-console
|
|
31
|
-
console.error('MinimumAmountOfRankedResultsRule: API call failed:', error);
|
|
32
|
-
throw error;
|
|
33
|
-
}
|
|
21
|
+
const rankedResultsCount = await this.searchApiClient.getCountWithRankings(filterKeyValues);
|
|
22
|
+
return rankedResultsCount >= this.minimumRankedResultsCount;
|
|
34
23
|
}
|
|
35
24
|
getName() {
|
|
36
25
|
return 'AtLeastFourRankedResultsRule';
|
|
@@ -17,7 +17,6 @@ export class BaseSitemapUrlGeneratorManager {
|
|
|
17
17
|
for (const presenter of this.presenters.values()) {
|
|
18
18
|
const count = presenter.getFragments().length;
|
|
19
19
|
this.filterKeyValueCounts.set(presenter.filterKey, count);
|
|
20
|
-
console.debug(`Set filter key value count for ${presenter.filterKey}: ${count}`); // eslint-disable-line no-console
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
getPolicies() {
|