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


(zhouxiang) #1

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 Devèze) #2

Hey you should have a look at this section of the doc
http://www.elasticsearch.org/guide/reference/mapping/

On Thu, Mar 22, 2012 at 11:02 AM, shinezhou 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 Devèze) #3

More specifically you could have a look at dynamic templates here
http://www.elasticsearch.org/guide/reference/mapping/root-object-type.html

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

Hey you should have a look at this section of the doc
http://www.elasticsearch.org/guide/reference/mapping/

On Thu, Mar 22, 2012 at 11:02 AM, shinezhou 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


(zhouxiang) #4

I see thanks!

On 3月22日, 下午6时22分, Benjamin Devèze 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 wrote:

Hey you should have a look at this section of the doc
http://www.elasticsearch.org/guide/reference/mapping/

On Thu, Mar 22, 2012 at 11:02 AM, shinezhou 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


(system) #5