From 617ab62f2b7abc4059a60783702100823097ccb4 Mon Sep 17 00:00:00 2001 From: Pedro Rosario Date: Mon, 1 Jul 2019 16:36:06 -0400 Subject: [PATCH 1/2] Remove old props --- mappings/pages.yml | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/mappings/pages.yml b/mappings/pages.yml index c232e94..ebf6c5f 100644 --- a/mappings/pages.yml +++ b/mappings/pages.yml @@ -22,20 +22,7 @@ _doc: type: text analyzer: stdEnglish users: - type: nested - properties: - username: - type: keyword - imageUrl: - type: keyword - name: - type: keyword - provider: - type: keyword - auth: - type: keyword - updateTime: - type: date + type: text history: type: nested properties: @@ -44,18 +31,7 @@ _doc: timestamp: type: date users: - type: nested - properties: - username: - type: keyword - imageUrl: - type: keyword - name: - type: keyword - provider: - type: keyword - auth: - type: keyword + type: text published: type: boolean archived: From d74fc81111a25c01a00cbcb8c99c40b7fa284fad Mon Sep 17 00:00:00 2001 From: Jordan Paulino Date: Thu, 11 Jul 2019 13:44:36 -0400 Subject: [PATCH 2/2] Fix mappings so that it works with users data normalized --- mappings/pages.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/mappings/pages.yml b/mappings/pages.yml index ebf6c5f..e172e18 100644 --- a/mappings/pages.yml +++ b/mappings/pages.yml @@ -22,7 +22,16 @@ _doc: type: text analyzer: stdEnglish users: - type: text + type: nested + properties: + id: + type: text + username: + type: keyword + provider: + type: keyword + updateTime: + type: date history: type: nested properties: @@ -31,7 +40,14 @@ _doc: timestamp: type: date users: - type: text + type: nested + properties: + id: + type: text + username: + type: keyword + provider: + type: keyword published: type: boolean archived: