diff --git a/search/IndexArchivedNews/algolia.ts b/search/IndexArchivedNews/algolia.ts deleted file mode 100644 index dbf5afcde..000000000 --- a/search/IndexArchivedNews/algolia.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Settings } from '@algolia/client-search' - -export const indexSettings: Settings = { - searchableAttributes: ['pageTitle', 'text'], - attributesToSnippet: ['text'], - attributesForFaceting: ['year', 'topicTags', 'countryTags'], - attributeForDistinct: 'slug', - distinct: 1, - advancedSyntax: true, - ranking: ['desc(publishDateTime)', 'typo', 'geo', 'words', 'filters', 'proximity', 'attribute', 'exact', 'custom'], -} diff --git a/search/IndexArchivedNews/index.ts b/search/IndexArchivedNews/index.ts index 368b9c8b9..d81de267b 100644 --- a/search/IndexArchivedNews/index.ts +++ b/search/IndexArchivedNews/index.ts @@ -11,7 +11,7 @@ import * as T from 'fp-ts/lib/Task' import { init, getClient, getFileList, copyFile } from './blobStorage' import { ContainerClient } from '@azure/storage-blob' import { update, generateIndexName, getEnvironment, languageFromIso, languageOrDefault, NewsIndex } from '../common' -import { indexSettings } from './algolia' +import { indexSettings } from '../IndexSanityContent/common/news/algolia' import { mapData } from './mapper' import { loadJson } from './fileStorage'