From fa8268b45a43f04c4c12c41bcad525dc9b48504a Mon Sep 17 00:00:00 2001 From: Daniel Mitterdorfer Date: Thu, 27 Apr 2017 14:15:46 +0200 Subject: [PATCH] Use only a single type for percolator Closes #26 --- percolator/document-mapping.json | 12 ------------ percolator/{queries-mapping.json => mapping.json} | 6 +++++- percolator/track.json | 8 ++------ 3 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 percolator/document-mapping.json rename percolator/{queries-mapping.json => mapping.json} (54%) diff --git a/percolator/document-mapping.json b/percolator/document-mapping.json deleted file mode 100644 index ce14ddbf..00000000 --- a/percolator/document-mapping.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "content": { - "dynamic": "strict", - "properties": { - "body": { - "type" : "text", - "analyzer" : "english" - } - } - } -} - diff --git a/percolator/queries-mapping.json b/percolator/mapping.json similarity index 54% rename from percolator/queries-mapping.json rename to percolator/mapping.json index 97712d10..ab7f6ac5 100644 --- a/percolator/queries-mapping.json +++ b/percolator/mapping.json @@ -1,7 +1,11 @@ { - "percolator": { + "content": { "dynamic": "strict", "properties": { + "body": { + "type" : "text", + "analyzer" : "english" + }, "query": { "type": "percolator" } diff --git a/percolator/track.json b/percolator/track.json index e9e9fbe1..c5b4d8bb 100644 --- a/percolator/track.json +++ b/percolator/track.json @@ -13,16 +13,12 @@ "name": "queries", "types": [ { - "name": "percolator", - "mapping": "queries-mapping.json", + "name": "content", + "mapping": "mapping.json", "documents": "queries-2.json.bz2", "document-count": 2000000, "compressed-bytes": 105192, "uncompressed-bytes": 110039748 - }, - { - "name": "content", - "mapping": "document-mapping.json" } ] }