Skip to content

Instantly share code, notes, and snippets.

View node-monk's full-sized avatar

Michael Watson node-monk

View GitHub Profile
@node-monk
node-monk / gist:bee39b1a535683798db7
Created December 14, 2014 14:38
ElasticSearch putMappings format.
18 esClient.indices.create({
19 index: 'content'
20 });
21
22 //create a mapping
23 esClient.indices.putMapping({
24 index: 'content',
25 type:'blog',
26 body: {
27 blog:{