From 8611d4cfd348b57120f936c064e9591c419a7ace Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 6 Aug 2020 12:31:53 -0700 Subject: ES schema: do not index fulltext.body or fulltext.annex separately from 'everything' The goal here is to reduce term index size. This means that querying/matching only on these fields (distinct from "everything") will not work. --- schema/scholar_fulltext.v01.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'schema') diff --git a/schema/scholar_fulltext.v01.json b/schema/scholar_fulltext.v01.json index b03412d..a759d8f 100644 --- a/schema/scholar_fulltext.v01.json +++ b/schema/scholar_fulltext.v01.json @@ -130,9 +130,9 @@ "dynamic": false, "properties": { "lang_code": { "type": "keyword", "normalizer": "default" }, - "body": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything", "store": true }, + "body": { "type": "text", "index": false, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything", "store": true }, "acknowledgement": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything", "store": true }, - "annex": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything", "store": true }, + "annex": { "type": "text", "index": false, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything", "store": true }, "release_ident": { "type": "keyword", "normalizer": "default", "doc_values": false }, "file_ident": { "type": "keyword", "normalizer": "default", "doc_values": false }, "file_sha1": { "type": "keyword", "normalizer": "default", "doc_values": false }, @@ -219,7 +219,6 @@ "doctype": { "type": "alias", "path": "doc_type" }, "tag": { "type": "alias", "path": "tags" }, - "body": { "type": "alias", "path": "fulltext.body" }, "abstract": { "type": "alias", "path": "abstracts.body" }, "acknowledgement":{ "type": "alias", "path": "fulltext.acknowledgement" }, "access_type": { "type": "alias", "path": "fulltext.access_type" }, -- cgit v1.2.3