# Empty fields in document and scoring

**URL:** <https://discuss.elastic.co/t/empty-fields-in-document-and-scoring/103253>\
**Category:** Elasticsearch\
**Created:** [October 9, 2017, 4:46pm UTC](https://discuss.elastic.co/t/empty-fields-in-document-and-scoring/103253 "2017-10-09T16:46:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [October 9, 2017, 4:46pm UTC](https://discuss.elastic.co/t/empty-fields-in-document-and-scoring/103253/1 "2017-10-09T16:46:52Z")

</div>

I many documents in my index and one of them is as below:  
{  
employeeName: "James Bond",  
employeePh: "1234567",  
postalCode : [],  
address: [],  
country: [],  
}

I understand that they should not be there in the first place, but lets consider we have them somehow according to my code.  
Can the empty fields affect score, for my match queries ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 9, 2017, 7:34pm UTC](https://discuss.elastic.co/t/empty-fields-in-document-and-scoring/103253/2 "2017-10-09T19:34:29Z")

</div>

No. It won't.

---

<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:** [November 6, 2017, 7:35pm UTC](https://discuss.elastic.co/t/empty-fields-in-document-and-scoring/103253/3 "2017-11-06T19:35:03Z")

</div>

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