From a6366dd1cd60586223607a41c323b8eed2fc6811 Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Fri, 19 May 2017 12:18:12 +0300 Subject: [PATCH] Current mapping --- map.json | 71 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 20 deletions(-) diff --git a/map.json b/map.json index fb0e0d7..bf6324d 100644 --- a/map.json +++ b/map.json @@ -1,25 +1,56 @@ { + "idec3" : { "mappings" : { - "post" : { - "properties" : { - "date" : { - "type" : "keyword", - "fields": { - "keyword": { - "type": "keyword" - } - } - }, - "echo" : { - "type" : "keyword", - "fields": { - "keyword": { - "type": "keyword" - } - } - } - } + "post" : { + "properties" : { + "author" : { + "type" : "text" + }, + "body" : { + "type" : "text", + "fields" : { + "keyword" : { + "type" : "keyword", + "ignore_above" : 256 + } + } + }, + "date" : { + "type" : "text", + "fielddata" : true + }, + "echo" : { + "type" : "keyword" + }, + "message" : { + "type" : "text" + }, + "msgid" : { + "type" : "text" + }, + "subg" : { + "type" : "text" + }, + "tags" : { + "type" : "text" + }, + "address" : { + "type" : "text" + }, + "subj" : { + "type" : "text", + "fields" : { + "keyword" : { + "type" : "keyword", + "ignore_above" : 256 + } + } + }, + "to" : { + "type" : "text" + } } + } } + } } -