# Default Name Inferrer not working?

**URL:** <https://discuss.elastic.co/t/default-name-inferrer-not-working/284910>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [September 22, 2021, 5:08pm UTC](https://discuss.elastic.co/t/default-name-inferrer-not-working/284910 "2021-09-22T17:08:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bensalerno](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bensalerno](https://discuss.elastic.co/u/bensalerno)\
**Post date:** [September 22, 2021, 5:08pm UTC](https://discuss.elastic.co/t/default-name-inferrer-not-working/284910/1 "2021-09-22T17:08:42Z")

</div>

I believe that I'm having trouble with field capitalization in my Nest queries on this topic. [ElasticSearch Nest query returning Null values for every field?](https://discuss.elastic.co/t/elasticsearch-nest-query-returning-null-values-for-every-field/284796)

I was told to try adding .DefaultFieldNameInferrer(p =\> p) to ConnectionSettings to fix this issue. However, when I have this added it gives me this error:

Elasticsearch.Net.Utf8Json.JsonParsingException : expected:'String Begin Token', actual:'1631555771000', at offset:344

I do not get this error when I do p.ToUpper() or p.ToLower(). What exactly am I doing wrong here?

For reference my objects look like this:

 ![Screen Shot 2021-09-22 at 9.47.29 AM](https://us1.discourse-cdn.com/elastic/original/3X/3/0/3005dc0bbe349147021d902f31d925885b105bdd.png)

---

<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 20, 2021, 5:09pm UTC](https://discuss.elastic.co/t/default-name-inferrer-not-working/284910/2 "2021-10-20T17:09:01Z")

</div>

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