From a338d7f435ec5970e98c9bbb95855f3a602145fc Mon Sep 17 00:00:00 2001 From: missinglink Date: Wed, 16 Mar 2022 12:12:54 +0100 Subject: [PATCH] feat: enable docvalues for source_id field --- mappings/document.js | 2 +- test/fixtures/expected.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mappings/document.js b/mappings/document.js index da22b396..d04bd8e8 100644 --- a/mappings/document.js +++ b/mappings/document.js @@ -166,7 +166,7 @@ var schema = { bounding_box: require('./partial/boundingbox'), // meta info - source_id: keyword, + source_id: keyword_with_doc_values, category: keyword, population: multiplier, popularity: multiplier, diff --git a/test/fixtures/expected.json b/test/fixtures/expected.json index be715c99..b30102f4 100644 --- a/test/fixtures/expected.json +++ b/test/fixtures/expected.json @@ -2986,8 +2986,7 @@ "index": false }, "source_id": { - "type": "keyword", - "doc_values": false + "type": "keyword" }, "category": { "type": "keyword", @@ -3051,4 +3050,4 @@ }, "dynamic": "strict" } -} +} \ No newline at end of file