# Lower case problem in field names

**URL:** <https://discuss.elastic.co/t/lower-case-problem-in-field-names/295026>\
**Category:** Elasticsearch\
**Created:** [January 21, 2022, 8:06am UTC](https://discuss.elastic.co/t/lower-case-problem-in-field-names/295026 "2022-01-21T08:06:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [January 21, 2022, 8:06am UTC](https://discuss.elastic.co/t/lower-case-problem-in-field-names/295026/1 "2022-01-21T08:06:21Z")

</div>

Hello dear friends, I have a problem, if you can help me I would be very happy. The problem is that; I reindexed from an existing index. While reindexing, there was a capitalization problem in the field names, so I added this to the settings section and problem was solved. `DefaultFieldNameInferrer(s => s).` Now I want to add a data to the index I'm reindexing, and all the fields are in lower case. I was expecting it to be a camel case. I would be very happy if anyone has any idea about this problem share it with me.

---

<div class="post-metadata">

**Author:** ![can.ozdemir](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@can.ozdemir](https://discuss.elastic.co/u/can.ozdemir)\
**Post date:** [January 21, 2022, 8:42am UTC](https://discuss.elastic.co/t/lower-case-problem-in-field-names/295026/2 "2022-01-21T08:42:41Z")

</div>

Hello,

Reindex do not copy \_mappings, \_settings or templates you might have on your old index. Maybe create another index with the settings you want, then reindex again.

[Reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html)

also

`DefaultFieldNameInferrer(s => s).`

This seems sketchy to me, don't you need a function call on "s" to capitalize it?

best regards.

---

<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:** [February 18, 2022, 8:42am UTC](https://discuss.elastic.co/t/lower-case-problem-in-field-names/295026/3 "2022-02-18T08:42:44Z")

</div>

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