From b33f69d92dbdfbf1be15521bf1893c053765a580 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 6 Aug 2020 12:32:59 -0700 Subject: enable index_phrases on everything, biblio_all, title_all Want phrase queries to be faster. Expect this to increase term index size, requiring more disk space. --- schema/scholar_fulltext.v01.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/schema/scholar_fulltext.v01.json b/schema/scholar_fulltext.v01.json index a759d8f..595356e 100644 --- a/schema/scholar_fulltext.v01.json +++ b/schema/scholar_fulltext.v01.json @@ -210,11 +210,9 @@ } }, - "everything": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }, - "biblio_all": { - "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", - "fields": {"exact": { "type": "text", "analyzer": "textIcuExact", "search_analyzer": "textIcuSearchExact" }} - }, + "everything": { "type": "text", "index": true, "index_phrases": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }, + "biblio_all": { "type": "text", "index": true, "index_phrases": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }, + "title_all": { "type": "text", "index": true, "index_phrases": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }, "doctype": { "type": "alias", "path": "doc_type" }, "tag": { "type": "alias", "path": "tags" }, -- cgit v1.2.3