diff --git a/servers/fdr/src/services/algolia/AlgoliaService.ts b/servers/fdr/src/services/algolia/AlgoliaService.ts index 87dac96652..75f4286a96 100644 --- a/servers/fdr/src/services/algolia/AlgoliaService.ts +++ b/servers/fdr/src/services/algolia/AlgoliaService.ts @@ -1,7 +1,7 @@ import { APIV1Db, DocsV1Db } from "@fern-api/fdr-sdk"; import algolia, { type SearchClient } from "algoliasearch"; import { type FdrApplication } from "../../app"; -import { AlgoliaSearchRecordGeneratorV2 } from "./AlgoliaSearchRecordGeneratorV2"; +import { AlgoliaSearchRecordGenerator } from "./AlgoliaSearchRecordGenerator"; import type { AlgoliaSearchRecord, ConfigSegmentTuple } from "./types"; export interface AlgoliaService { @@ -51,14 +51,11 @@ export class AlgoliaServiceImpl implements AlgoliaService { configSegmentTuples: ConfigSegmentTuple[]; }) { return configSegmentTuples.flatMap(([config, indexSegment]) => { - const generator = new AlgoliaSearchRecordGeneratorV2({ docsDefinition, apiDefinitionsById }); + const generator = new AlgoliaSearchRecordGenerator({ docsDefinition, apiDefinitionsById }); if (config == null) { return []; } - // const generator = getConfig().algoliaSearchV2Domains.some((domains) => url.includes(domains)) - // ? new AlgoliaSearchRecordGeneratorV2({ docsDefinition, apiDefinitionsById }) - // : new AlgoliaSearchRecordGenerator({ docsDefinition, apiDefinitionsById }); return generator.generateAlgoliaSearchRecordsForSpecificDocsVersion(config, indexSegment); }); }