# I am just from solr to elastic, have a question about mapping

**URL:** <https://discuss.elastic.co/t/i-am-just-from-solr-to-elastic-have-a-question-about-mapping/7092>\
**Category:** Elasticsearch\
**Created:** [March 22, 2012, 10:02am UTC](https://discuss.elastic.co/t/i-am-just-from-solr-to-elastic-have-a-question-about-mapping/7092 "2012-03-22T10:02:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhouxiang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zhouxiang/32/2775_2.png) [@zhouxiang](https://discuss.elastic.co/u/zhouxiang)\
**Post date:** [March 22, 2012, 10:02am UTC](https://discuss.elastic.co/t/i-am-just-from-solr-to-elastic-have-a-question-about-mapping/7092/1 "2012-03-22T10:02:47Z")

</div>

how can i define a mapping depends the field name.just like  
70   
71   
72   
73   
74   
75   
76   
77   
78   
79   
80   
81   
82   
83   
84   
85  
86   
87  
88   
89  
90   
dynamicfield : \*\_i =\> int  
could elastic do this?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Deveze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_deveze/32/1577_2.png) [@Benjamin\_Deveze](https://discuss.elastic.co/u/Benjamin_Deveze)\
**Post date:** [March 22, 2012, 10:19am UTC](https://discuss.elastic.co/t/i-am-just-from-solr-to-elastic-have-a-question-about-mapping/7092/2 "2012-03-22T10:19:23Z")

</div>

Hey you should have a look at this section of the doc

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Thu, Mar 22, 2012 at 11:02 AM, shinezhou [zhouxiang@baixing.com](mailto:zhouxiang@baixing.com) wrote:

> how can i define a mapping depends the field name.just like  
> 70   
> 71   
> 72   
> 73   
> 74   
> 75   
> 76   
> 77   
> 78   
> 79   
> 80   
> 81   
> 82   
> 83   
> 84   
> 85  
> 86   
> 87  
> 88   
> 89  
> 90   
> dynamicfield : \*\_i =\> int  
> could elastic do this?

--  
Benjamin DEVEZE

---

<div class="post-metadata">

**Author:** ![Benjamin\_Deveze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_deveze/32/1577_2.png) [@Benjamin\_Deveze](https://discuss.elastic.co/u/Benjamin_Deveze)\
**Post date:** [March 22, 2012, 10:22am UTC](https://discuss.elastic.co/t/i-am-just-from-solr-to-elastic-have-a-question-about-mapping/7092/3 "2012-03-22T10:22:48Z")

</div>

More specifically you could have a look at dynamic templates here

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Thu, Mar 22, 2012 at 11:19 AM, Benjamin Devèze  
[benjamin.deveze@gmail.com](mailto:benjamin.deveze@gmail.com) wrote:

> Hey you should have a look at this section of the doc  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/)
> 
> On Thu, Mar 22, 2012 at 11:02 AM, shinezhou [zhouxiang@baixing.com](mailto:zhouxiang@baixing.com) wrote:
> 
> > how can i define a mapping depends the field name.just like  
> > 70   
> > 71   
> > 72   
> > 73   
> > 74   
> > 75   
> > 76   
> > 77   
> > 78   
> > 79   
> > 80   
> > 81   
> > 82   
> > 83   
> > 84   
> > 85  
> > 86   
> > 87  
> > 88   
> > 89  
> > 90   
> > dynamicfield : \*\_i =\> int  
> > could elastic do this?
> 
> --  
> Benjamin DEVEZE

--  
Benjamin DEVEZE

---

<div class="post-metadata">

**Author:** ![zhouxiang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zhouxiang/32/2775_2.png) [@zhouxiang](https://discuss.elastic.co/u/zhouxiang)\
**Post date:** [March 22, 2012, 10:40am UTC](https://discuss.elastic.co/t/i-am-just-from-solr-to-elastic-have-a-question-about-mapping/7092/4 "2012-03-22T10:40:09Z")

</div>

I see thanks!

On 3月22日, 下午6时22分, Benjamin Devèze [benjamin.dev...@gmail.com](mailto:benjamin.dev...@gmail.com) wrote:

> More specifically you could have a look at dynamic templates herehttp://www.elasticsearch.org/guide/reference/mapping/root-object-type...
> 
> On Thu, Mar 22, 2012 at 11:19 AM, Benjamin Devèze
> 
> [benjamin.dev...@gmail.com](mailto:benjamin.dev...@gmail.com) wrote:
> 
> > Hey you should have a look at this section of the doc  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/)
> 
> > On Thu, Mar 22, 2012 at 11:02 AM, shinezhou [zhouxi...@baixing.com](mailto:zhouxi...@baixing.com) wrote:
> > 
> > > how can i define a mapping depends the field name.just like  
> > > 70   
> > > 71   
> > > 72   
> > > 73   
> > > 74   
> > > 75   
> > > 76   
> > > 77   
> > > 78   
> > > 79   
> > > 80   
> > > 81   
> > > 82   
> > > 83   
> > > 84   
> > > 85  
> > > 86   
> > > 87  
> > > 88   
> > > 89  
> > > 90   
> > > dynamicfield : \*\_i =\> int  
> > > could elastic do this?
> 
> > --  
> > Benjamin DEVEZE
> 
> --  
> Benjamin DEVEZE

---

<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:** [July 6, 2017, 3:35am UTC](https://discuss.elastic.co/t/i-am-just-from-solr-to-elastic-have-a-question-about-mapping/7092/5 "2017-07-06T03:35:13Z")

</div>


