﻿---
title: NLP limitations
description: The following limitations and known problems apply to the Elastic natural language processing trained models feature. When using semantic text to ingest...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/explore-analyze/machine-learning/nlp/ml-nlp-limitations
products:
  - Elasticsearch
  - Machine Learning
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# NLP limitations
The following limitations and known problems apply to the Elastic natural language processing trained models feature.

## Document size limitations when using `semantic_text` fields

When using semantic text to ingest documents, chunking takes place automatically. The number of chunks is limited by the [`index.mapping.nested_objects.limit`](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3028/reference/elasticsearch/index-settings/mapping-limit) cluster setting, which defaults to 10k. Documents that are too large will cause errors during ingestion. To avoid this issue, split your documents into roughly 1MB parts before ingestion.

## ELSER semantic search is limited to 512 tokens per field that inference is applied to

When you use ELSER for semantic search, only the first 512 extracted tokens from each field of the ingested documents that ELSER is applied to are taken into account for the search process. If your data set contains long documents, divide them into smaller segments before ingestion if you need the full text to be searchable.