# Ingest processor vs token filter & char filter

**URL:** <https://discuss.elastic.co/t/ingest-processor-vs-token-filter-char-filter/199594>\
**Category:** Elasticsearch\
**Created:** [September 16, 2019, 7:29am UTC](https://discuss.elastic.co/t/ingest-processor-vs-token-filter-char-filter/199594 "2019-09-16T07:29:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skowron-line](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skowron-line/32/43528_2.png) [@skowron-line](https://discuss.elastic.co/u/skowron-line)\
**Post date:** [September 16, 2019, 7:29am UTC](https://discuss.elastic.co/t/ingest-processor-vs-token-filter-char-filter/199594/1 "2019-09-16T07:29:25Z")

</div>

Hi I want to ask about difference of token filter and ingest processor for lowercase and char filter html strip and ingest processor html strip, any example when use which.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 16, 2019, 1:48pm UTC](https://discuss.elastic.co/t/ingest-processor-vs-token-filter-char-filter/199594/2 "2019-09-16T13:48:38Z")

</div>

Hey,

so this requires the explanation about the difference between ingest processors and analysis. The short variant is

- An ingest processor is able **modify the JSON document**
- An analysis step (character filter/token filter) is able to **modify the data the gets stored in the inverted index**

This means, if you retrieve the document via the Get API, the first will show modified JSON in the `_source`, where as the second, will show the document as you indexed it.

Hope this helps as a start.

---

<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:** [October 14, 2019, 1:48pm UTC](https://discuss.elastic.co/t/ingest-processor-vs-token-filter-char-filter/199594/3 "2019-10-14T13:48:46Z")

</div>

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