From 25177d874355fa66dae390a9a7bfae2a2c09b969 Mon Sep 17 00:00:00 2001 From: Roy Russo Date: Sat, 10 Jan 2015 12:54:11 -0500 Subject: [PATCH] - explicit add of revenue field in invoice mapping --- populate.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/populate.sh b/populate.sh index 06d8b6b..2ba18f2 100755 --- a/populate.sh +++ b/populate.sh @@ -365,7 +365,19 @@ curl -s -XDELETE 'http://localhost:9200/november_2014_invoices' > /dev/null curl -s -XDELETE 'http://localhost:9200/december_2014_invoices' > /dev/null curl -s -XPOST 'http://localhost:9200/november_2014_invoices' -d'{}' echo -curl -s -XPOST 'http://localhost:9200/december_2014_invoices' -d'{}' +curl -s -XPOST 'http://localhost:9200/december_2014_invoices' -d' +{ + "mappings" : + { + "invoice" : + { + "properties" : + { + "revenue" : { "type" : "integer" } + } + } + } +}' echo