Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

313
Visualizações
Change total_fields limit for Elasticsearch index using node.js client

I'm using node.js Elasticsearch 7.17 client to create default index settings, and I'd like the total_fields limit to be more than the default 1000. When I try the following:

export const defaultCaseIndexSettings: IndicesIndexSettings = {
  'index.number_of_replicas': 0,
  'index.number_of_shards': 6,
  'index.max_result_window': Number(INDEX_MAX_RESULT_WINDOW),
  'index.mapping.total_fields.limit': 10000,
etc.
}

it seems that index.mapping.total_fields.limit is not a setting that can be set on IndicesIndexSettings. I've also tried:

export const defaultCaseSettingsIndexConfig: IndicesCreateRequest['body'] = {
  settings: {
    index: {
      number_of_shards: '2',
      number_of_replicas: '2',
      mapping: {
        total_fields: {
          limit: 10000,
        },
      },
    },
  },

and that gives me the message that Object literal may only specify known properties, and 'mapping' does not exist in type 'IndicesIndexSettings'. How can I set the total_fields limit using nodejs Elasticsearch client?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda