# Could i assign field properties when index?

**URL:** <https://discuss.elastic.co/t/could-i-assign-field-properties-when-index/210159>\
**Category:** Elasticsearch\
**Created:** [December 2, 2019, 10:41am UTC](https://discuss.elastic.co/t/could-i-assign-field-properties-when-index/210159 "2019-12-02T10:41:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubo3085632](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hubo3085632/32/23724_2.png) [@hubo3085632](https://discuss.elastic.co/u/hubo3085632)\
**Post date:** [December 2, 2019, 10:41am UTC](https://discuss.elastic.co/t/could-i-assign-field-properties-when-index/210159/1 "2019-12-02T10:41:33Z")

</div>

I have some special field such as geo\_point , could i assign field properties when index, i do not want to create mapping before index

---

<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:** [December 2, 2019, 12:31pm UTC](https://discuss.elastic.co/t/could-i-assign-field-properties-when-index/210159/2 "2019-12-02T12:31:06Z")

</div>

Use an index template in that case.  
When the index will be created by the first index document API call, the mapping you defined in the index template will be used.

---

<div class="post-metadata">

**Author:** ![hubo3085632](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hubo3085632/32/23724_2.png) [@hubo3085632](https://discuss.elastic.co/u/hubo3085632)\
**Post date:** [December 3, 2019, 2:56am UTC](https://discuss.elastic.co/t/could-i-assign-field-properties-when-index/210159/3 "2019-12-03T02:56:53Z")

</div>

Thank u , i will try

---

<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 31, 2019, 2:56am UTC](https://discuss.elastic.co/t/could-i-assign-field-properties-when-index/210159/4 "2019-12-31T02:56:58Z")

</div>

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