Default document mapping for new document type


(Marcin Dojwa) #1

Hi,

Is it possible to set default document mapping in existing index for newly
created document types ? I want to have the same document mapping for each
document type in a single index.

Best regards.
Marcin Dojwa


(Radu Gheorghe) #2

Hi Marcin,

Yes, you can use index templates, where you can use wildcards. Take a look
here:
http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.html

On Wednesday, August 8, 2012 3:46:25 PM UTC+2, Marcin Dojwa wrote:

Hi,

Is it possible to set default document mapping in existing index for newly
created document types ? I want to have the same document mapping for each
document type in a single index.

Best regards.
Marcin Dojwa


(Clinton Gormley) #3

On Wed, 2012-08-08 at 15:46 +0200, Marcin Dojwa wrote:

Hi,

Is it possible to set default document mapping in existing index for
newly created document types ? I want to have the same document
mapping for each document type in a single index.

You can just map a type default and that will be used for all
automatically created types in that index

clint


(Marcin Dojwa) #4

Thank you for the answer.

Best regards.

2012/8/9 Clinton Gormley clint@traveljury.com

On Wed, 2012-08-08 at 15:46 +0200, Marcin Dojwa wrote:

Hi,

Is it possible to set default document mapping in existing index for
newly created document types ? I want to have the same document
mapping for each document type in a single index.

You can just map a type default and that will be used for all
automatically created types in that index

clint


(system) #5