# Validating that documents conform to strict mappings

**URL:** <https://discuss.elastic.co/t/validating-that-documents-conform-to-strict-mappings/254421>\
**Category:** Elasticsearch\
**Created:** [November 5, 2020, 2:06pm UTC](https://discuss.elastic.co/t/validating-that-documents-conform-to-strict-mappings/254421 "2020-11-05T14:06:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjuric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjuric/32/39462_2.png) [@mjuric](https://discuss.elastic.co/u/mjuric)\
**Post date:** [November 5, 2020, 2:06pm UTC](https://discuss.elastic.co/t/validating-that-documents-conform-to-strict-mappings/254421/1 "2020-11-05T14:06:41Z")

</div>

We need to validate that documents delivered to us conform to strict mappings in ElastiSearch before they are indexed. Is there a way to use the strict mapping validation component of ElasticSearch as a library outside the server environment, so that we could implement our own Java program to validate documents against some mapping configuration?

I tried to have a look at the source code in GitHub, but I wasn't sure where to start to looking, so I would appreciate if someone could maybe point me in the right direction. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![KARTHIKEYAN\_THANIKAC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthikeyan_thanikac/32/53154_2.png) [@KARTHIKEYAN\_THANIKAC](https://discuss.elastic.co/u/KARTHIKEYAN_THANIKAC)\
**Post date:** [November 5, 2020, 2:50pm UTC](https://discuss.elastic.co/t/validating-that-documents-conform-to-strict-mappings/254421/2 "2020-11-05T14:50:21Z")

</div>

Hi Mario Juric,  
Do you push data directly to Elasticsearch / push through any parser like Logstash

---

<div class="post-metadata">

**Author:** ![mjuric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjuric/32/39462_2.png) [@mjuric](https://discuss.elastic.co/u/mjuric)\
**Post date:** [November 5, 2020, 2:59pm UTC](https://discuss.elastic.co/t/validating-that-documents-conform-to-strict-mappings/254421/3 "2020-11-05T14:59:01Z")

</div>

We push data directly to ES

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 3, 2020, 2:59pm UTC](https://discuss.elastic.co/t/validating-that-documents-conform-to-strict-mappings/254421/4 "2020-12-03T14:59:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
