import { FieldName } from '../../../../../libs/common/domain/src/lib/model/search'

export const DEFAULT_PAGE_SIZE = 10

export const FIELDS_SUMMARY: FieldName[] = [
  'uuid',
  'id',
  'title',
  'resource*',
  'resourceTitleObject',
  'resourceAbstractObject',
  'overview',
  'logo',
  'link',
  'linkProtocol',
  'contactForResource*.organisation*',
  'contact*.organisation*',
  'contact*.email',
  'userSavedCount',
  'cl_topic',
  'cl_maintenanceAndUpdateFrequency',
  'cl_presentationForm',
  'MD_LegalConstraints*Object',
  'qualityScore',
  'allKeywords',
  'recordLink',
]

export const FIELDS_BRIEF: FieldName[] = [
  ...FIELDS_SUMMARY,
  'resourceTypeObject',
  'Org*',
]

export const QUERY_FIELDS: FieldName[] = [
  'resourceTitleObject.${searchLang}^5',
  'tag.${searchLang}^4',
  'resourceAbstractObject.${searchLang}^3',
  'lineageObject.${searchLang}^2',
  'any.${searchLang}',
  'uuid',
]
